• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Difference in ConfigurationSettings in Vs Net 2005 vs 2003

hi
i am using vs.net 2005 and i am using web.config
when i do this in vb.net
 Dim strConn As String = ConfigurationSettings.AppSettings("OraConn")

it comes as underline (but no error otherwise) that ConfigurationSettings is obsolete...seems there is some new way to use the same thing in 2005 version?
0
samir25
Asked:
samir25
2 Solutions
 
sabeeshCommented:
ConfigurationManager.AppSettings("OraConn")

Use this
0
 
samir25Author Commented:
ok ..byt what is the diff bet ween the 2?
thanks
0
 
renjurdevanCommented:
go through link

http://msdn2.microsoft.com/en-us/library/system.configuration.configurationmanager.appsettings.aspx

ConfigurationManager.AppSettings("OraConn") used to get values stored in applicationsettings in web.config where name = OraConn

Regards
Renju
0
 
samir25Author Commented:
yah but what is the difference based on what i asked
0
 
joechinaCommented:
There is no difference for now.
It's just a warning that ConfigurationSettings is obsolete and in furture .net release it might not be included.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now