读取Web.config文件中节的值

Web.config中:
<appSettings>
    <add key="ConnectionString" value="server=.;database=bbs;uid=sa;pwd=;"/>
</appSettings>
.aspx.cs中:
System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"];
posted @ 2006-07-10 10:51  pensir  阅读(606)  评论(2编辑  收藏  举报