2011年5月11日
摘要: 1.为什么需要自定义节点 为了增加应用程序的可移植性,通常网站需要配置一些自定义的节点,例如:文件上传的路径等,再深入的应用,可以定义工厂方法需要创建的类。 2.configSections使用方法 configSections节点下定义自定义节点可以帮我们实现我们自己的节点。 首先定义自己的节点,定义方法如下: <configSections> <sectionGroupname="sectiongroupname"> <sectionname="sectionname"type="configurationse 阅读全文
posted @ 2011-05-11 20:37 啊T 阅读(492) 评论(0) 推荐(0)
摘要: 1、在webconfig中加入如下代码 <configSections> <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" /> </configSections> <rewriter> <!--重写规则--> 阅读全文
posted @ 2011-05-11 17:08 啊T 阅读(484) 评论(0) 推荐(0)