Help On Sitemap Navigation link

Posted by Vijayar under ASP.NET on 1/25/2012 | Points: 10 | Views : 1275 | Status : [Member] | Replies : 7
Hi
I am not getting link for the nodes in sitemap.the code is as follows

<div style="padding: 2px 2px 2px 16px; background-color: #FFFFFF;">
<asp:SiteMapPath ID="SiteMapPath1" runat="server" PathSeparator=" >> "
Font-Names="Verdana" Font-Size="0.8em">
<PathSeparatorStyle Font-Bold="true" ForeColor="#990000" />
<CurrentNodeStyle ForeColor="#333333" />
<NodeStyle Font-Bold="true" ForeColor="DarkSlateGray" />
<RootNodeStyle Font-Bold="true" ForeColor="DarkSlateGray" />
</asp:SiteMapPath></div>
the path is displayed but iam not getting hyperlink for the nodes i.e root,parent and current nodes

what should i add to get link for the nodes.It's very urgent

vijaya


Responses

Posted by: Ksuresh on: 1/25/2012 [Member] Starter | Points: 25

Up
0
Down
hi,
Go through this link " RenderCurrentNodeAsLink=true"
http://www.dotnetfunda.com/tutorials/controls/sitemappath.aspx

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shareraju on: 1/25/2012 [Member] Starter | Points: 25

Up
0
Down
Please add web.sitemap file to your project.in that web.sitemap file you can mention url for parent and current nodes with title.

pls reply if you have any quaries regarding this.

may be this helpfull.
Raju A

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijayar on: 1/25/2012 [Member] Starter | Points: 25

Up
0
Down

Hi iam creating sitemap like this ,where pages are placed in pages folder of site,but iam not getting link for path

<siteMapNode url="" title="Home " description="">

<siteMapNode url="~/Pages/AdminHome.aspx" title="Home Master " description="Home Information"/>

<siteMapNode url="" title="Admission" description="Admission">
<siteMapNode url="~/Pages/NewAdmission.aspx" title="Admission " description="Admission Information"/>

</siteMapNode>
<siteMapNode url="" title="Menu " description="Menu">
<siteMapNode url="~/Pages/MenuMaster.aspx" title="Menu Master " description="Menu Master Information"/>

</siteMapNode>
<siteMapNode url="" title="Masters " description="Menu">
<siteMapNode url="~/Pages/Caste.aspx" title="Caste " description="Caste Information"/>
<siteMapNode url="~/Pages/frmClass.aspx" title="Class" description="Class Information" />
<siteMapNode url="~/Pages/frmMotherTongue.aspx" title="Mother Tongue" description="Mother Tongue Information" />
<siteMapNode url="~/Pages/frmNationality.aspx" title="Nationality" description="Nationality Information" />
<siteMapNode url="~/Pages/frmNote.aspx" title="Note" description="Nationality Information" />

<siteMapNode url="~/Pages/frmOccupation.aspx" title="Occupation" description="Occupation Information" />
<siteMapNode url="~/Pages/frmQualification.aspx" title="Qualification" description="Qualification Information" />
<siteMapNode url="~/Pages/frmReligion.aspx" title="Religion" description="Religion Information" />
<siteMapNode url="~/Pages/CalenderEventsMaster.aspx" title=" Academic Calendar " description="Events Information" />
<siteMapNode url="~/Pages/frmThoughtOfDay.aspx" title="Thought For The Day" description="Thought Information" />
<siteMapNode url="~/Pages/frmDesignation.aspx" title="Designation" description="Designation Information" />

<siteMapNode url="~/Pages/EventMaster.aspx" title="Events" description="Events Information" />
<siteMapNode url="~/Pages/Distance.aspx" title="Distance" description="Distance Information" />
<siteMapNode url="~/Pages/frmTerm.aspx" title="Term" description="Term Information" />


</siteMapNode>



<siteMapNode url="" title="Staff " description="Menu">
<siteMapNode url="~/Pages/frmDepartment.aspx" title="Department " description="Department Master Information"/>
<siteMapNode url="~/Pages/frmSubject.aspx" title="Subject " description="Subject Master Information"/>
<siteMapNode url="~/Pages/frmStaff.aspx" title="Staff " description="Staff Master Information"/>
</siteMapNode>

<siteMapNode url="" title="Teacher Class " description="Menu">
<siteMapNode url="~/Pages/StudentMaster.aspx" title="Student Master " description="Student Master Information"/>
<siteMapNode url="~/Pages/ClassSubject.aspx" title=" ClassSubject " description="Class SubjectMaster Information"/>
<siteMapNode url="~/Pages/TeacherassigntoClass.aspx" title="Teacher Assign To Class " description="Teacher Assign to Class Information"/>
<siteMapNode url="~/Pages/frmTeacherAttendance.aspx" title="Teacher Attendance " description="Teacher Attendance Information"/>
<siteMapNode url="~/Pages/StudentPerformance.aspx" title="Student Performance " description="Student Performance Information"/>
<siteMapNode url="~/Pages/frmTeacher.aspx" title="Teacher " description="Teacher Master Information"/>
<siteMapNode url="~/Pages/Grades.aspx" title="Grades " description="Grade Master Information"/>
</siteMapNode>
<siteMapNode url="" title="User and Role " description="Menu">
<siteMapNode url="~/Pages/UserMaster.aspx" title="User Master " description="User Master Information"/>
<siteMapNode url="~/Pages/RoleMaster.aspx" title="Role Master " description="Role Master Information"/>
<siteMapNode url="~/Pages/AssignMenu.aspx" title="Assign Menu " description="Menu Information"/>

</siteMapNode>
</siteMapNode>

vijaya

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shareraju on: 1/25/2012 [Member] Starter | Points: 25

Up
0
Down
pls add web.sitemap file in master page and mention url for HOME also like -- ~/default.aspx.

pls go through ---http://msdn.microsoft.com/en-us/library/ie/x20z8c51.aspx

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijayar on: 1/25/2012 [Member] Starter | Points: 25

Up
0
Down
HI
Home is the Menu Name,which does not have any url,under which i have a childpage called AdminHome
<siteMapNode url="" title="Home " description="">

<siteMapNode url="~/Pages/AdminHome.aspx" title="Home Master " description="Home Information"/>
</siteMapNode>
where is my mistake

vijaya

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shareraju on: 1/27/2012 [Member] Starter | Points: 25

Up
0
Down
Please send your application menu navigation structue.

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijayar on: 1/29/2012 [Member] Starter | Points: 25

Up
0
Down
Hi
In Home Menu i have one page Admin Home only
In Masters Menu i have caste.class,designation,department...and so on

vijaya

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response