J
james
Hey Guys,
Do you have any idea how to acces Request.QueryString in a MasterPage?
I need to use it to modify my sitemap.
My code is:
public partial class MasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
SiteMap.SiteMapResolve += new
SiteMapResolveEventHandler(this.ResolveAdapter);
}
SiteMapNode ResolveAdapter(object sender, SiteMapResolveEventArgs
e)
{
SiteMapNode currentNode = SiteMap.CurrentNode.Clone(true);
string realm =
ContentPlaceHolder1.Page.Request.QueryString["realm"];
currentNode.Url += "?realm=" + realm;
return currentNode;
}
Do you have any idea how to acces Request.QueryString in a MasterPage?
I need to use it to modify my sitemap.
My code is:
public partial class MasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
SiteMap.SiteMapResolve += new
SiteMapResolveEventHandler(this.ResolveAdapter);
}
SiteMapNode ResolveAdapter(object sender, SiteMapResolveEventArgs
e)
{
SiteMapNode currentNode = SiteMap.CurrentNode.Clone(true);
string realm =
ContentPlaceHolder1.Page.Request.QueryString["realm"];
currentNode.Url += "?realm=" + realm;
return currentNode;
}