Hi Friends,
I am developing web project in C# VS 2013.
i give URL link to menus.
i have the following menus:
Home,Course,Application,Contact
URL for menus:
Home->/Default
Course->/PageInfo/Course
Application->/PageInfo/Application
Contact->/Contact
below is my Routeconfig code
routes.MapPageRoute(
"Page Informations",
"PageInfo/{PageInfo}",
"~/Page.aspx"
);
routes.MapPageRoute(
"Home Page",
"Home",
"~/Default.aspx"
);
routes.MapPageRoute(
"Contactus Page",
"Contact",
"~/Contact.aspx"
);
if i click Course page, the URL automatically changed as following:
Home->PageInfo/Default
Course->PageInfo/PageInfo/Course
Application->PageInfo/PageInfo/Application
Contact->PageInfo/Contact
anyone knows why the URL Concatenate with others like this.
here my menu code
<ul id="nav">
<li><a href="Default.aspx">Home</a></li>
<li><a href="PageInfo/Course">Course</a></li>
<li><a href="PageInfo/faculty">Faculty</a></li>
<li><a href="PageInfo/Application">Application</a></li>
<li><a href="ReachUs">Reach Us</a></li>
<li><a href="Contact.aspx">Contact Us</a></li>
</ul>