ASP.NET在System.Web.Configuration命名空间中提供WebConfigurationManager类,他可以允许你在运行时从配置文件抓取信息。你可以用以下代码来循环处理连接字符串foreach (ConnectionStringSettings connection in WebConfigurationManager.ConnectionStrings) { Respo... Read More
posted @ 2010-11-12 23:15 gull Views(573) Comments(2) Diggs(0) Edit
我按章asp.net3.5使用web.config文件,一些配置环境<?xml version="1.0"?><configuration>  <configSections>  <appSettings />  <connectionStrings />  <system.web />  <system.codedom... Read More
posted @ 2010-11-12 09:03 gull Views(916) Comments(0) Diggs(1) Edit