Programmatically Modify Site-Map Node title in Memory

F

fredd00

Hi

I'm trying to change my bread crumbs titles
but it doesn't seem to work , i can change the url but the title never
changes

i'm using a sitemapHandler class and implemented like this :
http://msdn2.microsoft.com/en-us/library/ms178425(VS.80).aspx


some bits of code


SiteMapNode nodeCopy =
SiteMap.Providers["SiteMapProviderName"].CurrentNode.Clone(true);
SiteMapNode tempNode = nodeCopy;

tempNode.Url = "test";
tempNode.Title = tempNode.Title.Replace("distributor",
e.Context.Request.QueryString["DiName"].ToString());

if i execute tempNode.Title.Replace("distributor",
e.Context.Request.QueryString["DiName"].ToString()) in immediatewindow
the value "distributor" is replace
but at run time it's as if its not being assigned properly

also i'm using a global resource file for localizing my titles, could
this be the problem

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top