2010-07-09 23 views

Respuesta

2
 <% if (Request.Url.DnsSafeHost.Contains("localhost") || Request.UserHostName.Contains("127.0.0.1")) 
     { 

     } %> 
17
@if (Request.IsLocal) { // do something } 

o

<% if (Request.IsLocal) { // do something } %> 
1

para global.asax

if (System.Diagnostics.Debugger.IsAttached){themeName = ConfigurationManager.AppSettings["ThemeName"];} 
Cuestiones relacionadas