[VB.NET]vs2005下怎么读取app.config?

前端之家收集整理的这篇文章主要介绍了[VB.NET]vs2005下怎么读取app.config?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
vs2005下怎么读取app.config? 环境vs2005,语言vb.net,用System.Configuration.ConfigurationSettings.GetConfig被提示System.Configuration.Configurationmanage.getsection编译错误 __________________________________________________________________________ 救急 __________________________________________________________________________ 能看一下那个完整的句子么? __________________________________________________________________________ dim constr as string constr=System.Configuration.ConfigurationSettings.GetConfig( "connectstring ").tostring 提示getconfig过时,被System.Configuration.Configurationmanage.getsection取代,但是后者根本通不过编译 __________________________________________________________________________ 没有人吗?救急啊,55555555 __________________________________________________________________________ System.Configuration.ConfigurationManager.AppSettings( "connectionString ").ToString __________________________________________________________________________ 编译根本通不过 __________________________________________________________________________ 您是用WebForm么? __________________________________________________________________________ 还有通不过显示什么信息? __________________________________________________________________________ 提示Configuration.不能初始化,请问什么意思?我用System.Configuration.Configurationmanage.appsettings.get来读 __________________________________________________________________________ 用 Dim str as String = ConfigurationManager.AppSettings( "connectionString ").ToString 就行啦,您的connectionString设置好了吧? __________________________________________________________________________ 是app.config的问题,已经处理好了,但是我读不出表里数据,但是用sql是可以查询到的 sqlstr = " select * from tbgmtsmpl where ClientName= '' " + Me.txtClientName.Text + " '' " rs = cn.Execute(sqlstr) If rs.RecordCount > 0 Then setForm(rs) End If 在后台是能查询数据的,请问什么原因? __________________________________________________________________________ 是app.config的问题,已经处理好了。 能请问一下是什么问题么? System.Configuration.ConfigurationManager.AppSettings( "connectionstring ").ToString 这个可以用么? __________________________________________________________________________

猜你在找的VB相关文章