Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
4886 Points
740 Posts
Aug 31, 2012 07:28 AM|LINK
Try this:
menu.Append("<li><a href=\"" + Request.ApplicationPath + "/" + drChild["page_url"].ToString() + "\">" + drChild["page_menuLinkTitle"].ToString() + "</a></li>");
More information on Request.ApplicationPath: http://msdn.microsoft.com/en-us/library/system.web.httprequest.applicationpath.aspx
jprochazka
Contributor
4886 Points
740 Posts
Re: Asp .Net 4.0 URL Routing Issue.
Aug 31, 2012 07:28 AM|LINK
Try this:
menu.Append("<li><a href=\"" + Request.ApplicationPath + "/" + drChild["page_url"].ToString() + "\">" + drChild["page_menuLinkTitle"].ToString() + "</a></li>");More information on Request.ApplicationPath:
http://msdn.microsoft.com/en-us/library/system.web.httprequest.applicationpath.aspx