| 发表于:2007-08-11 00:19:35 楼主 |
http://community.csdn.net/expert/topic/5703/5703370.xml?temp=.6602899 晚上,上csdn看到的帖子,虽然已经帖了。但是,我发现它实现真正的历遍自 定义配置节,如何历遍呢,想到现在也没有弄出来,特向大家请教。 为了大家看方便,复制如下 是web.config中的 <?xml version= "1.0 " encoding= "utf-8 "?> <configuration> <configsections> <sectiongroup name= "f1 "> <section name= "f2 " type= "student.test,student "/> </sectiongroup> </configsections> <f1> <f2> <f3 name= "email " texttype= "a++ " info= "important " message= "{0} 非常重要的 "/> <f3 name= "email1 " texttype= "a " info= "level1 " message= "{0}一般! "/> <f3 name= "email2 " texttype= "a+ " info= "level2 " message= "{0}平常{1}! "/> </f2> </f1> <appsettings/> <connectionstrings/> <system.web> <compilation debug= "true " /> <customerrors mode= "remoteonly " defaultredirect= "genericerrorpage.htm "> <error statuscode= "403 " redirect= "noaccess.htm " /> <error statuscode= "404 " redirect= "filenotfound.htm " /> </customerrors> --> </system.web> </configuration> 就是要历遍f2下的所有f3。 |
|
|
|
|