Can you programatically detect if the Development server in Visual Studio is used instead of IIS?
A:
You can check the debug flag of your web.config. You have to set it debug=true in development and on going live you change it to false (what you have to do anyway).
You can check if it is in debug with the following line:
HttpContext.Current.IsDebuggingEnabled
Maybe there are better ways to check this
MUG4N
2010-08-17 08:43:07