Hi Arne,
Have you tried checking?
if (Reuqest.Url.Port!=80) {
//this means you are debugging in VS 2005
}
Another way to consider for debugging is the use of conditional compilation
directives
http://msdn.microsoft.com/library/d...y/en-us/csspec/html/vclrfcsharpspec_2_5_4.asp
e.g. add at the top of the codebehind file:
#define Debug
Then in the body where you want to remove the project name from the URL:
string myURL = Request.Url.LocalPath;
#if Debug
myURL= Request.Url.LocalPath.Replace(Request.Url.Segments[1],"");
#endif
Then when you deploy to production you just need to comment out the
directive at the top of the page.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
Arne said:
Is there a way to know if a project runs inside Visual Studio. I have a file
based web site. The project name is added to the url, which messed up my menu.