Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello...

i have added menu control and given the navigateurl property for navigation to Emp.aspx. but it doesn't work.
plz help.

XML
<asp:MenuItem Text="EMPLOYEE" Value="EMPLOYEE">
                        <asp:MenuItem NavigateUrl="~/Emp.aspx" Text="ADD EMPLOYEE" Value="ADD EMPLOYEE" ></asp:MenuItem>
                        <asp:MenuItem Text="UPDATE INFO" Value="UPDATE INFO"></asp:MenuItem>
                    </asp:MenuItem>
Posted
Comments
Then path NavigateUrl="~/Emp.aspx" must be wrong.
TrushnaK 2-Jun-14 8:23am    
Check your Emp.aspx path. Is that page in same directory.

1 solution

Hi I have tried below code its working fine as your requirement

<asp:menu runat="server" xmlns:asp="#unknown">
<items>
<asp:menuitem navigateurl="~/test.aspx" text="Call Page">

 
Share this answer
 
Comments
TAUSEEF KALDANE 2-Jun-14 8:04am    
actually i already added runat= "server" but it doesn't work

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900