c# - Dynamic hierarchy sitemap asp.net -


hi need build dynamic hierarchy sitemap . here xml

<!--company tab-->   <sitemapnode url="~/module/eb/company/companylist.aspx" title="company list"  description="company list"  >     <sitemapnode url="~/module/eb/company/companydetail.aspx" title="company detail setup"  description="company detail setup"  >       <sitemapnode url="~/module/eb/employee/employeedetail.aspx" title="employee detail setup"  description="employee detail setup" >         <sitemapnode url="~/module/eb/employee/employeedependentdetail.aspx" title="employee dependent setup"  description="employee dependent setup" >         </sitemapnode>       </sitemapnode>     </sitemapnode>   </sitemapnode>   <!--company tab-->    <!--employee tab-->   <sitemapnode url="~/module/eb/employee/employeelist.aspx" title="employee list"  description="employee list" >      <sitemapnode url="~/module/eb/employee/employeedetail.aspx" title="employee detail setup"  description="employee detail setup" >         <sitemapnode url="~/module/eb/employee/employeedependentdetail.aspx" title="employee dependent setup"  description="employee dependent setup" >         </sitemapnode>       </sitemapnode>   </sitemapnode> 

sitemenu.aspx

<asp:sitemappath id="sitemappath1" runat="server" font-names="microsoft new tai lue"                    font-size="0.9em" pathseparator=" : " skiplinktext="" font-bold="false"                    style="font-family: 'times new roman', times, serif; font-size: small"                    visible="true"  enabled="false">                   <currentnodestyle forecolor="#333333" font-underline="true" />                   <nodestyle font-bold="true" forecolor="#284e98" />                   <pathseparatorstyle font-bold="true" forecolor="#507cd1" />                   <rootnodestyle font-bold="true" forecolor="#507cd1"  />                </asp:sitemappath> 

so nw question . in company tab can access employee detail(employeedetail.aspx) tab. in employee tab can access employee detail.aspx

but nw error. xmlsitemapprovider requires sitemap nodes have unique urls.

any solutions?

i dont have enough reputation post comment question, have tried putting querystring on end of employee detail links. doesnt have code refers explictly, enough make different - eg:

<sitemapnode url="~/module/eb/employee/employeedependentdetail.aspx?key=value1" title="employee dependent setup"  description="employee dependent setup" > 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -