Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

where's my "AppSettings" in my web.config file?? 1

Status
Not open for further replies.

eramgarden

Programmer
Aug 27, 2003
279
US
I've been reading about having database connection string in web.config, in AppSettings of the file... (someone on this forum also said to put it there..thanks!)...

But when I open my web.config, i dont see the tag for AppSettings ...this tag is NOT part of web.config?? i have to add it myself??
 
you have to add it yourself as so

<configuration>
<appSettings>
<add key="connString" value = "user id=userid;pwd=password;data source=servername;persist security info=False;initial catalog=dabasename"/>
</appSettings>

other settings here

</configuration>
 
Thanks for quick repsonse..I'm new at .Net. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top