Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > problem with NavigateUrl

Reply
Thread Tools

problem with NavigateUrl

 
 
Jeff
Guest
Posts: n/a
 
      01-31-2010
hi

asp.net 3.5

On my site I have a menu control where I've put all the menu controls. The
problem is that when staying on one page and navigating to another page,
that page is not found:

If I'm on ~/Pages/MyPage.aspx and wants to navigate to
~/Admin/SqlExceptions.aspx
Then I get an error saying that ~/Pages/SqlExceptions.aspx don't exists - of
course that webpage doesn't exists, it hasa the wrong directory. But I did
specify the correct directory in the mennu control, that makes it more
confusing..

here is markup of the menu controls in trouble:
<asp:RoleGroup Roles="Administrator">
<ContentTemplate>
<asp:Menu ID="Menu1" runat="server" Orientation="Vertical"
SkinID="vertical" StaticDisplayLevels="3">
<Items>
<asp:MenuItem Text="Home" Value=""
NavigateUrl="~/Default.aspx"></asp:MenuItem>
<asp:MenuItem Text="MyPage" Value=""
NavigateUrl="~/Pages/MyPage.aspx"></asp:MenuItem>
</Items>
</asp:Menu>
<div style="text-align:center; background-color:#3399FF; color:White;
margin-top:5px; font-family:Verdana; padding-bottom:5px; padding-top:5px;
font-size:12px;">
Administrator
</div>
<asp:Menu ID="Menu2" runat="server" Orientation="Vertical"
SkinID="vertical" StaticDisplayLevels="3">
<Items>
<asp:MenuItem Text="Users" Value=""
NavigateUrl="~/Admin/ManageUsers.aspx"></asp:MenuItem>
<asp:MenuItem Text="SqlExceptions" Value=""
NavigateUrl="~/Admin/SqlExceptions.aspx"></asp:MenuItem>
<asp:MenuItem Text="Statistics" Value=""
NavigateUrl="~/Admin/StatisticList.aspx"></asp:MenuItem>
</Items>
</asp:Menu>
</ContentTemplate>
</asp:RoleGroup>

any suggestions?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hyperlink and dynamically formed NavigateURL problem Tomek R. ASP .Net 7 02-13-2009 05:12 PM
asp:Hyperlink NavigateUrl problem gerry ASP .Net 3 02-13-2009 05:02 PM
Problem setting NavigateUrl's in DataList (hyperlink) VB Programmer ASP .Net 3 11-16-2005 12:29 AM
Problem with Hyperlink.NavigateURL="../../" in WebControls Christoph Schuster ASP .Net Web Controls 4 07-23-2003 09:05 AM
NavigateUrl problem Helixpoint ASP .Net 0 07-22-2003 05:42 PM



Advertisments