Welcome Guest Search | Active Topics | Sign In | Register

Menu Control - links not working unless authenticated Options
DomNZ
Posted: Tuesday, August 3, 2010 9:45:11 PM
Rank: Newbie
Groups: Member

Joined: 8/3/2010
Posts: 2
I'm using the EO.Web Menu control by binding it to a SiteMapDataSource see below. The correct menu items are shown but when clicked will not link (navigate to the url specified in the web.sitemap file. However, if I login to my site and become an authenticated user then the additional menu items for that profile are shown and all links work including those that did not work when I was not authenticated. I'm using ASP 2.0.
............

<eo:Menu Enabled="true" CausesValidation="false" runat="server" ID="Menu1" Width="100%" ControlSkinID="None" ClientSideOnItemClick="OnMainMenuItemClick" DataSourceID="TabMenuSitemap">
<TopGroup Style-CssText="border-right: #e0e0e0 1px solid; padding-right: 10px; border-top: #FF9E02 2px solid; padding-left: 10px; font-size: 12px; background-image: url(00020005); padding-bottom: 3px; border-left: #e0e0e0 1px solid; cursor: hand; color: #000000; padding-top: 3px; font-family: arial">
</TopGroup>
<LookItems>
<eo:MenuItem IsSeparator="True" ItemID="_Separator" NormalStyle-CssText="width: 1px; height: 1px; background-color: #cb3e00">
</eo:MenuItem>
<eo:MenuItem HoverStyle-CssText="color:#FF9E02;padding-left:5px;padding-right:5px;"
ItemID="_Default" NormalStyle-CssText="padding-left:5px;padding-right:5px;" CausesValidation="False" Disabled="false">
<SubMenu ExpandEffect-Type="GlideTopToBottom" Style-CssText="border-right: #e0e0e0 1px solid; padding-right: 3px; border-top: #e0e0e0 1px solid; padding-left: 3px; font-size: 12px; padding-bottom: 3px; border-left: #e0e0e0 1px solid; cursor: hand; color: #000000; padding-top: 3px; border-bottom: #e0e0e0 1px solid; font-family: arial; background-color: #f7f8f9"
CollapseEffect-Type="GlideTopToBottom" OffsetX="-3" ShadowDepth="0" OffsetY="3"
ItemSpacing="5">
</SubMenu>
</eo:MenuItem>
</LookItems>
</eo:Menu>

............
<asp:SiteMapDataSource ID="TabMenuSitemap" runat="server" ShowStartingNode="false" />

eo_support
Posted: Tuesday, August 3, 2010 10:04:31 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Make sure you allow eo_web.ashx to be accessed by anonymous user. See here for more details:

http://www.essentialobjects.com/forum/postst1401_the-eo-web-controls-are-not-rendered.aspx

Thanks!
DomNZ
Posted: Tuesday, August 3, 2010 10:35:14 PM
Rank: Newbie
Groups: Member

Joined: 8/3/2010
Posts: 2
Hi,
I added

<location path="eo_web.ashx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

checked the file is the correct location and it still does not work. The menu is rendering properly but the mouse over does not highlight or link work when not authenticated

I have also manually created a datatable and bound it to the menu and it works. So I guess the question is does this Menu control work with SiteMap
eo_support
Posted: Wednesday, August 4, 2010 10:07:29 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You may want to try the same site map with a standard ASP.NET Menu control and see if you get the same result. Our Menu uses the standard site map interface to get all the nodes and their properties. SiteMapDataSource can hide certain node from "outside". You can find more details from here:

http://msdn.microsoft.com/en-us/library/ms178428.aspx

This option hides a node if it is not accessible. You may have your custom site map provider that implements similar features but only hide the "url" attribute but still let the outside sees the site map node.

If the standard ASP.NET Menu demonstrates the same problem, then the problem is definitely on the sitemap side and you will need to troubleshoot that yourself. If standard ASP.NET Menu control works fine, then you can try to duplicate the problem in a separate test project and send it to us. We will be very happy to look into it and see what we can find.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.