Last post Aug 10, 2006 01:55 AM by freelancing god
Aug 08, 2006 02:31 AM|freelancing god|LINK
When using the Menu Adapter for a Menu that's on a master page, I found that whenever you view a page in a subfolder, it wouldn't resolve the urls correctly (eg. when at Admin/User.aspx, the link in the menu is Admin/Admin/User.aspx).
After poking around and viewing the original MenuItem code via Reflector, I found the problem - the Adapter has the following line of code in the BuildItem method:
It should use the Menu object, not the Page object, to resolve the Url:
Aug 08, 2006 03:36 PM|Russ Helfand|LINK
Aug 08, 2006 08:36 PM|freelancing god|LINK
Aug 08, 2006 08:39 PM|Russ Helfand|LINK
No problem. I just want to make sure that we are sync with one another. I think you're on to something very interesting here.
So, would you recommend that we use theControl.ResolveUrl instead of Page.ResolveUrl everywhere? Frankly, all these "resolve" methods confuse me!
Aug 08, 2006 09:07 PM|freelancing god|LINK
Aug 08, 2006 09:13 PM|Russ Helfand|LINK
Aug 09, 2006 03:20 PM|Russ Helfand|LINK
Aug 10, 2006 01:55 AM|freelancing god|LINK