Hi friends,
Can we store connection string in another file like txt,xml ... if yes, then why we are using web.config and what's the benefity to use config file.
thanks
Ajitender
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hemant KumarPosted Jul 27, 2012, 9:26 AM
Actually the Web Config is used as a Configuration File for the Complete Asp.Net Web Site.This file contains Session State ,Connection Strings ,Error Handling etc.
This file is in XML which is universal understable format with meaing ful specifiers.
Santhosh Kumar JayaramanPosted Jul 27, 2012, 9:24 AM
Check this.
http://www.c-sharpcorner.com/UploadFile/1a81c5/configuring-connection-string-in-app-config-file-during-runt/
The above article is for windows application, same thing can be used for asp.net with no modifications or little modifications with keywords