Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ApplicationPath Problem
Message
From
13/10/2005 19:26:47
Del Despain
Colorado Plateau Associates
Hurricane, Utah, United States
 
 
To
26/08/2005 12:30:36
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01044234
Message ID:
01058946
Views:
15
>Hi,
>
>I have had similar problems by using the fully qualified context.
>
>the Following worked out better, since the HttpCOntext is inherited by the system.web i just use the Request.ApplicationPath, now the problem with that is that it will only return the root of where you are so if you are in "http://localhost/" it will only return "/", the fix that i found is to use the Request.CurrentExecutionFilePath, which return the entire path of the current file location, and all i need to do is then strip out the file name from the last "/". Works everytime.

Hi,

I'm running into the same problem with MM .Net controls not display thier security icons.

I currently use the following to get the current application path.
string path =  Request.Url.GetLeftPart(UriPartial.Authority) + this.ResolveUrl( Request.ApplicationPath + "/");
	if(path.EndsWith("//"))
	{
		// Remove the two ‘//’ from the path
	}
	return path;
Could you please explain how to fix the problem for the MM Frameowork? Do you subclass the mmWebDataHelper and fix the GetSecurityIconHtml() method ?

Any help would be appreciated.

Thanks,
Del
Previous
Reply
Map
View

Click here to load this message in the networking platform