Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
274
DataTreeNodeBinding NavigateUrlFields with querystring parameter par=*
posted

Hi, I've an XML file like this:

<?xml version="1.0"?>
<SiteMapNodes>
  <SiteMapNode Text="My Profile" ToolTip="Manage my profile" NavigateUrl="~/PortalPage/MyProfile.aspx" ImageUrl="~/images/MenuBar/MyProfile.gif">
    <SiteMapNode Text="group2" ToolTip="" NavigateUrl="~/PortalPage/Administration/group2.aspx?par1=*" ImageUrl="" />
  </SiteMapNode>
</SiteMapNodes>

If I bound a WebDataTree to the file as:

<asp:XmlDataSource runat="server" ID="TreeDataSource" DataFile="~/App_Data/XMLFile.xml"
    XPath="SiteMapNodes/SiteMapNode" />
<ig:WebDataTree ID="NavigationDetails" runat="server" DataSourceID="TreeDataSource"
    InitialExpandDepth="1" Height="100%" Width="100%">
    <DataBindings>
        <ig:DataTreeNodeBinding DataMember="SiteMapNode" TextField="Text" ToolTipField="ToolTip"
            ImageUrlField="ImageUrl" NavigateUrlFields="NavigateUrl" />
    </DataBindings>
</ig:WebDataTree>

I get the following error:

Server Error in '/WebSite2' Application.

'~/PortalPage/Administration/group2.aspx&#63;par1=*' is not a valid virtual path.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: '~/PortalPage/Administration/group2.aspx&#63;par1=*' is not a valid virtual path.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): '~/PortalPage/Administration/group2.aspx&#63;par1=*' is not a valid virtual path.]
   System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +8862443
   System.Web.VirtualPathUtility.ToAbsolute(String virtualPath) +12
   Infragistics.Web.UI.NavigationControls.NavItem.get_ResolvedNavigateUrl() +139
   Infragistics.Web.UI.NavigationControls.DataTreeRenderer.RenderNode(DataTreeNode node, HtmlTextWriter writer, Boolean identSubnodes) +2390
   Infragistics.Web.UI.NavigationControls.DataTreeRenderer.RenderNodes(DataTreeNodeCollection nodes, HtmlTextWriter writer, Boolean addNoWalkAttribute) +1655
   Infragistics.Web.UI.NavigationControls.DataTreeRenderer.RenderNode(DataTreeNode node, HtmlTextWriter writer, Boolean identSubnodes) +3044
   Infragistics.Web.UI.NavigationControls.DataTreeRenderer.RenderNodes(DataTreeNodeCollection nodes, HtmlTextWriter writer, Boolean addNoWalkAttribute) +1655
   Infragistics.Web.UI.NavigationControls.DataTreeRenderer.RenderContents(HtmlTextWriter writer) +1049
   Infragistics.Web.UI.Framework.RunBot.HandleRenderContents(HtmlTextWriter writer, RendererBase renderer) +135
   Infragistics.Web.UI.Framework.Data.HierarchicalDataBoundControlMain.RenderContents(HtmlTextWriter writer) +71
   Infragistics.Web.UI.Framework.Data.HierarchicalDataBoundControlMain.Render(HtmlTextWriter writer) +39
   Infragistics.Web.UI.NavigationControls.NavControl.Render(HtmlTextWriter writer) +79
   Infragistics.Web.UI.NavigationControls.WebDataTree.Render(HtmlTextWriter writer) +61
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   Infragistics.Web.UI.LayoutControls.ContentPane.RenderContents(HtmlTextWriter writer) +625
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Infragistics.Web.UI.LayoutControls.ContentPane.RenderControl(HtmlTextWriter writer) +43
   Infragistics.Web.UI.LayoutControls.SplitterRenderer.RenderPane(HtmlTextWriter writer, SplitterPane pane, Int32 index, Boolean horizontal) +2668
   Infragistics.Web.UI.LayoutControls.SplitterRenderer.RenderContents(HtmlTextWriter writer) +2699
   Infragistics.Web.UI.Framework.RunBot.HandleRenderContents(HtmlTextWriter writer, RendererBase renderer) +135
   Infragistics.Web.UI.Framework.ControlMain.RenderContents(HtmlTextWriter writer) +70
   Infragistics.Web.UI.Framework.ControlMain.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   Infragistics.Web.UI.LayoutControls.ContentPane.RenderContents(HtmlTextWriter writer) +625
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Infragistics.Web.UI.LayoutControls.ContentPane.RenderControl(HtmlTextWriter writer) +43
   Infragistics.Web.UI.LayoutControls.TabRenderer.RenderContentPanes(HtmlTextWriter writer, Boolean design) +2551
   Infragistics.Web.UI.LayoutControls.TabRenderer.RenderContentHolder(HtmlTextWriter writer, Boolean inner, Boolean leftRightHoriz, Boolean design) +629
   Infragistics.Web.UI.LayoutControls.TabRenderer.RenderContents(HtmlTextWriter writer) +2112
   Infragistics.Web.UI.Framework.RunBot.HandleRenderContents(HtmlTextWriter writer, RendererBase renderer) +135
   Infragistics.Web.UI.Framework.ControlMain.RenderContents(HtmlTextWriter writer) +70
   Infragistics.Web.UI.Framework.ControlMain.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   Infragistics.Web.UI.LayoutControls.ContentPane.RenderContents(HtmlTextWriter writer) +625
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Infragistics.Web.UI.LayoutControls.ContentPane.RenderControl(HtmlTextWriter writer) +43
   Infragistics.Web.UI.LayoutControls.SplitterRenderer.RenderPane(HtmlTextWriter writer, SplitterPane pane, Int32 index, Boolean horizontal) +2668
   Infragistics.Web.UI.LayoutControls.SplitterRenderer.RenderContents(HtmlTextWriter writer) +2699
   Infragistics.Web.UI.Framework.RunBot.HandleRenderContents(HtmlTextWriter writer, RendererBase renderer) +135
   Infragistics.Web.UI.Framework.ControlMain.RenderContents(HtmlTextWriter writer) +70
   Infragistics.Web.UI.Framework.ControlMain.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

It is due to this: NavigateUrl="~/PortalPage/Administration/group2.aspx?par1=*" changing par1=* into par1=a everything works fine.

 

Is it a bug ?

Is there a work around?

 

Thank You

Claudio Mellina