asp.net mvc 3 - Is it possible to use multiple SiteMapNodes with the same Controller and Action, but different titles? -


i constructing wizard, , use same "master" controller , action orchestrate child controller , action called implement step.

i trying put breadcrumb trail represent wizard flow, difficulty. not helped fact 1 cannot have multiple "mvcsitemapnode"s in mvc.sitemap same controller , action. seems need master controller name ie "wizard" , "index" opposed child controller name ie "step1" , "index".

so, on own, work:

                  <mvcsitemapnode title="step1" controller="wizard" action="index" preservedrouteparameters="id" route="wizard"/> 

however do, multiple wizard steps:

                  <mvcsitemapnode title="step1" controller="wizard" action="index" preservedrouteparameters="id" route="wizard"/>                   <mvcsitemapnode title="step2" controller="wizard" action="index" preservedrouteparameters="id" route="wizard"/> 

but above not work, unless there way differentiate these nodes.

any wisdom appreciated!

thanks.

just found answer.

yes possible, long identical controller/action nodes not siblings, ie make them children.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -