Can anyone please tell me what am I missing here?
I have the following function
- public string GetHostedPageUrl(string pPageName)
- {
- string _sHostedPageUrl = HttpContext.Current.Request.ApplicationPath.Trim();
- _sHostedPageUrl += HttpContext.Current.Request.PhysicalApplicationPath.Substring(ncGlobal.WebApplicationPath.Length).Replace('\\', '/').Insert(0, "/") + pPageName;
- return _sHostedPageUrl;
- }
I use it on plain client-side html <a href="<%=GetHostedPageUrl("Home.aspx")%>">Home</a>
in the Visual Studio 2010 IDE works 100% fine, but once I publish-compile the project and deploy it does not work.
Any Idea
TIA