CSDN博客

img realromi

获得web.config文件中appsettings中的字段值

发表于2004/7/2 17:17:00  621人阅读

<appSetting>
    <add key = "ConnString" value = "Provider = Microsolft......"/>
</appSetting>

读取
dim strConn as string = System.Configuration.ConFigurationsetting.Appsettings("ConnString")

而在vb.net的html代码中
<IMG src='<%= System.Configuration.ConfigurationSettings.AppSettings["TopAdImage"] %>'>

阅读全文
0 0

相关文章推荐

img
取 消
img