Click here to Skip to main content
15,886,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

I have create one website name as StudentInfo. In that website they have nearly 10 pages like Registration, Masterpage, Signin, Profile, ForgotPassword, ChangePassword, Markslist, FeeDetails, Home and Attendance. Now whenever I have visit any page in top I need like,


Home-->Registration for Registration page
Home-->Signin for signin page
Home-->Profile-->Maskslist for marklist page in side profile
Home-->Profile-->FeeDetails for FeeDetails page in side profile
Home-->Profile-->Attendance for Attendance page in side profile


How to get these way by using master page.

otherwise is there any option for get each page using any control?

Please give me advice.

Thanks in advance.
Posted
Comments
Sinisa Hajnal 12-Sep-14 2:15am    
Are you asking how to create a menu on top of the page?
Also, technically, MasterPage isn't one of the pages...assuming it is what the name implies, master page :)
Member 10021658 12-Sep-14 7:15am    
Thanks for your reply. Actually I have a doubt about this format. Is there any control for that output or we can create the path dynamically for every page?

1 solution

You can use the SiteMap control and page to accomplish this,

First create a Sitemap page and add the navigation paths,
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="A1.aspx" title="Select Category" description="">
<siteMapNode url="A2.aspx" title="Select Sub Page" description="" >
<siteMapNode url="A.aspx" title="Page A" description="" />
<siteMapNode url="B.aspx" title="Page B" description="" />
<siteMapNode url="C.aspx" title="Page C" description="" />
<siteMapNode url="D.aspx" title="Page D" description="" />
<siteMapNode url="E.aspx" title="Page E" description="" />
</siteMapNode>
</siteMapNode>
</siteMap>


Then add the Sitemap control to your master page,
<asp:SiteMapPath ID="SiteMapPath1" runat="server" ShowToolTips="false" />
 
Share this answer
 

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