Parameter not displaying in <%=Html.SiteMapPath() %>

Apr 8, 2010 at 1:02 PM



I have a SiteMap that looks like this:


<mvcSiteMapNode title="Home" controller="Home" action="Index" isDynamic="true">

<mvcSiteMapNode title="Patient Search" isDynamic="true" action="PatientSearch" controller="Patient">

      <mvcSiteMapNode title="Details" isDynamic="true" dynamicParameters="id" action="Details" controller="Patient">

            <mvcSiteMapNode title="List Appointments" dynamicParameters="id" isDynamic="true" action="ListPatientAppointments" controller="Patient">

                  <mvcSiteMapNode title="Appointment" isDynamic="true" dynamicParameters="id;idappointment" action="EditAppointment" controller="Patient">






And the Actions looks like that

public ActionResult ListPatientAppointments(int? ID)
public ActionResult EditAppointment(int? ID,int? IDAppointment)
I only need to recorder the ID in my siteMapPath! The ID is the patient ID
In this stage the SiteMap displays Home > Patient Search > List Appointments
and then I go to an appointment and I get:
Home > Patient Search > List Appointments > Appointment
If I want to go back to the List Appointments I click on the link but the ID has not been recorded! I don't get any parameters to show in the url as it should be done.... any ideas??? Everything works perfect but no parameters are shown in the urls