The code below does not work as expected to determine if it is in development mode (VS.Net 2003 - Control Library):
if (this.Site! = null && this.Site.DesignMode == true)
{
// Development mode
}
else
{
// Runtime
}
It is used in a complex user control obtained from another user control and including other user controls. Is there any other way to determine development time in VS.NET 2003 or what is the problem with the code above?
source
share