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;
- }
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

Midhun TpRank #388 · 6.5K reputationPosted Dec 26, 2016, 7:54 PM EST
Jose SaizRank #5,346 · 302 reputationPosted Dec 27, 2016, 3:51 AM EST