我在web.config里定义如下配置项
<configSections>
<sectionGroup name="waley">
<section name="FontSize" type="WebApplication1.pageFontHandler,WebApplication1"/>
</sectionGroup>
</configSections><waley>
<FontSize fontSize="10" fontColor="red">
<add fontSize="30" />
</FontSize>
</waley>
在pageFontHandler类里可以得到<FontSize>的配置项值,但是得不到<add>得值。即使我使用this.Context.GetConfig("waley/FontSize/add")也得不到相应得值。而我看见web.config里
<authorization>
<allow users="*"/>
</authorization>
它是怎么设置,从而可以读取到<allow>得配置值得
<configSections>
<sectionGroup name="waley">
<section name="FontSize" type="WebApplication1.pageFontHandler,WebApplication1"/>
</sectionGroup>
</configSections><waley>
<FontSize fontSize="10" fontColor="red">
<add fontSize="30" />
</FontSize>
</waley>
在pageFontHandler类里可以得到<FontSize>的配置项值,但是得不到<add>得值。即使我使用this.Context.GetConfig("waley/FontSize/add")也得不到相应得值。而我看见web.config里
<authorization>
<allow users="*"/>
</authorization>
它是怎么设置,从而可以读取到<allow>得配置值得
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货