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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top