我在这里画了一张白纸,用来做一些应该很简单的事情……
我试着做一些事情,比如:
<my:control runat="server" id="myid" Visible="<%= (is compilation debug mode?) %>" />
我在这里画了一张白纸,用来做一些应该很简单的事情……
我试着做一些事情,比如:
<my:control runat="server" id="myid" Visible="<%= (is compilation debug mode?) %>" />
这将使您获得<system.web>
节组中的<compilation>
个元素:
using System.Web.Configuration ;
. . .
CompilationSection compilationSection = (CompilationSection)System.Configuration.ConfigurationManager.GetSection(@"system.web/compilation") ;
. . .
// check the DEBUG attribute on the <compilation> element
bool isDebugEnabled = compilationSection.Debug ;
容易的