doubt related with site map in asp.net

Posted by Amritha444 under ASP.NET on 11/27/2012 | Points: 10 | Views : 890 | Status : [Member] | Replies : 4
Hi all

I entered all details of pages in xml.but one page sitemap not coming as i mean.
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<!--<siteMapNode url="~/EmployeePortal/Index.aspx" title="Home" description="Home" >-->
<siteMapNode url="~/User/UserApplications.aspx" title="Applications" description="Applications">
<siteMapNode url="~/User/TicketDashboard.aspx" title="Ticketing Dashboard" description="Ticketing Dashboard" >
<siteMapNode url="~/User/Ticket_Details.aspx" title="Ticket Details" description="Ticket Details" />
<siteMapNode url="~/User/NewTicket.aspx" title="Create Ticket" description="Create Ticket"/>
<siteMapNode url="~/User/My_Tickets.aspx" title="My Tickets" description="My Tickets">
<siteMapNode url="~/User/Ticket_Details.aspx?page=1" title="Ticket Details" description="Ticket Details" />

</siteMapNode>

</siteMapNode>


</siteMapNode>
</siteMap>
here coming as
applications>ticketing dashbaord>ticket details
but i want to come as
applications>ticketing dashbaord>my tickets>ticket details
why its not coming by my code
Thanks in advance
Amrutha




Responses

Posted by: Somu475 on: 11/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Amritha,

Check ur code properly, some siteMapNode tags are closed by using "> " and some siteMapNode tags are closed by using "/> ".

Those 2 types makes difference in Menu items.

Hope this hint helps you....

Mark as Answer if it helps you...

-Somu

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

Posted by: Amritha444 on: 11/28/2012 [Member] Starter | Points: 25

Up
0
Down
hi thanks for the response im redirecting to same page from different pages .for eg from different pages there is navigation to ticket details page.when going from dashboard to ticketdetails site map as applications>dashboard>ticketdetails.but i have another page my tickets from this page when im navigating to ticket details page it appearing as applications>dashboard>ticketdetails.instead i want applications>dashboard>My tickets>ticketdetails

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

Posted by: Sandhyab on: 11/28/2012 [Member] Starter | Points: 25

Up
0
Down
Try this,
<?xml version="1.0" encoding="utf-8" ?>

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

<siteMapNode url="~/User/UserApplications.aspx" title="Applications" description="Applications">
<siteMapNode url="~/User/TicketDashboard.aspx" title="Ticketing Dashboard" description="Ticketing Dashboard" >
<siteMapNode url="~/User/Ticket_Details.aspx" title="Ticket Details" description="Ticket Details" />
<siteMapNode url="~/User/NewTicket.aspx" title="Create Ticket" description="Create Ticket"/>
</siteMapNode>
<siteMapNode url="~/User/My_Tickets.aspx" title="My Tickets" description="My Tickets"/>
<siteMapNode url="~/User/Ticket_Details.aspx?page=1" title="Ticket Details" description="Ticket Details" />



</siteMapNode>




</siteMap>

Now it will appear as


Applications >Ticketing Dashboard> My Tickets> Ticket Details



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

Posted by: Amritha444 on: 11/28/2012 [Member] Starter | Points: 25

Up
0
Down
hi its not working.I dont want a single case to be corrected.first case i want to go direclty to ticket details page from dashboard (
Applications >Ticketing Dashboard>Ticket Details ).when i navigate from my tickets page it should come as
Applications >Ticketing Dashboard> My Tickets> Ticket Details



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

Login to post response