In order to have a less cluttered master page for the site I am working on I have taken a menu control and its datasource and placed them in a Webcontrol (usercontrol). The problem is that the urls for the menu items are being set relative to the directory in which the user control is instead of relative to the pages url.
Example: the control is in a directory called Modules lets say the page name is test.aspx. The url should look like this www.x.com/test.aspx instead its making www.x.com/module/test.aspx
Any ideas how I can fix this?

Thanks
Simmy

the urls for the menu control should look like this: ~/test.aspx always use relative url's when using a menu control or navigation controls, the alternative is to fully qualify the url including the domain: http://www.x.com/test.aspx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.