I'm using a WebMenu 8.1 control to navigate. It works fine by setting the TargetURL for the next page.
However, I would like to navigate back to the previous page. I would normally use something like this.PreviousPage or Request.UrlReferrer, but neither of them is set properly (PreviousPage is null, UrlReferrer points to the current page, just like Url, not the previous page).
What's the best way of getting back to the previous page when using the WebMenu?
Thanks,DaveL
HI ,
When you set the TargetURL also set the TargetFrame="_self"
Here is a help link to the WebMenu TargetFrame property:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Infragistics2.WebUI.UltraWebNavigator.v8.1~Infragistics.WebUI.UltraWebNavigator.UltraWebMenu~TargetFrame.html
Here is a help link to the TargetURl property:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Infragistics2.WebUI.UltraWebNavigator.v8.1~Infragistics.WebUI.UltraWebNavigator.UltraWebMenu~TargetUrl.html
I set TargetFrame = "_self" (single underscore) and there was no change in behavior. The various properties that normally point to the way back are either undefined or point to the target url (not the source url).
The two links you mention demonstrate how to set the various properties, but they don't discuss what each of them should do. There's no mention of "_self". They didn't shed any light on the problem.
We're probably going to capture a click event and do the work in there. Not quite as clean, but it should work!
Thanks,
DaveL