Hi we are stack up in this problem of ContentUrl or NavigateUrl on WebDatamenu/ConentUrl on WebDialog.
This two works Ok with Pages that is on Root but it always not working if the pages comes from a folder.
this is my webApp PAges Structure sample.
Root Folder:
Default.aspx ContentUrl="Default.aspx"
PopUp Folder:
Create.aspx ContentUrl="~/PopUp/Create.aspx"
this works on first execution of Default.aspx but when i go click the next webdialog with Create page ,exception says The resource cannot be found /~/PoPup/Create.aspx.. And when i click again the WebDialog with default.aspx it also says: The resource cannot be found. /PopUp/Default.aspx
How To Fix this..?
We Really need your help about this,
Thanks in Regards
----------------------------------------------------------
I already solve my the problem about
Navigation Url of Webdatamenu if Pages are in different fodlers.
I just Add temaple and Hyperlink on WebdatamenuItem.
I tried this also in contentpane but it does not work.
Oops Sorry ..I forgot to mention that the Webdatamenu is in a Master Page sir.
Hi NewbApps,
Thank you for the sample code.
I tested this scenario and what I can relate is that the navigateURL path is calculated based on the location of the page from which the request is made, i.e. if you have the same menu in Default and Create and you navigate to Create.aspx, the current URL looks something like : YouPage/Forms/Create.aspx. If the same menu is now present in Create.aspx and we try to navigate from this page, the value of NavigateURL is concatenated to the currentURL, hence that would explaing the generation of :
Requested URL: /Forms/Default.aspx
Requested URL: /Forms/Forms/Create.aspx
Please let me know if this is helpful.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support
still error occurrs.. I created now a test for webdatamenu
<ig:WebDataMenu ID="WebDataMenu1" runat="server" Width="100%" Height="30px" StyleSetName="Office2010Blue">
<Items>
<ig:DataMenuItem Text="View">
<ig:DataMenuItem Text="Default" NavigateUrl="Default.aspx" Key="Default">
</ig:DataMenuItem>
</Items>
<ig:DataMenuItem Text="Transaction">
<ig:DataMenuItem Text="Create" Key="Create" NavigateUrl="Forms/Create.aspx">
<GroupSettings Orientation="Horizontal" EnableAnimation="False" />
</ig:WebDataMenu>
this is my test series:
test1 : execute menus on first load default and Create aspx - OK
test2: execute menus the second time - failed
This Example also is the same as ContentUrl on WebDialog.
Try to test it sir.. We are using version 10.3 of Infragistics asp.net control.
Can you try setting the Url without the "~/" at the start, for instance "Popup/Create.aspx" to see if this makes a difference. It would also be useful to know which version of .NedAdvantage you are using.
Please let me know if this helps.