can i use two web.config files of ConnectionString in One
Default.aspx page
Answers were Sorted based on User's Feedback
Answer / anoop.r
Above Answer is not exactly right.we can have more than one
web.config file in an application. We can have web .config
file for every folder in application.but not 2 web.cofig in
one place
Is This Answer Correct ? | 46 Yes | 1 No |
Answer / sudhir kunnure
You can use multiple web.config in multiple folders in one
application but not in same folder.You can use conection
string in same folder's web.config not others if you want
to use other connection string then you can assign many
keys for connection string in same web.confg.for that not
nessacary to use other web.confg.
Is This Answer Correct ? | 26 Yes | 2 No |
Answer / pradeep
To: Amar Shah
While using Webconfig file in your project, you can
override the Machine configuration details. If you are
having the webconfig in sub folder, this will override your
root folder webconfig file.
Ex:
Root: Webconfig -- ConnString ="Root Connection"
Sub Folder Webconfig -- ConnString ="Sub Connectin"
If your page in Root folder, the "ConnString will take from
Root folder webconfig. If it is in Sub folder, obviously it
will take from subfolder webconfig file.
Is This Answer Correct ? | 10 Yes | 0 No |
Answer / amar shah
hi,
reading above points i have one question , tell me i
have two web.config file in two different folder but the
connection string name is same in both web.config
file..with different server detail ..now tell me what will
happen...????
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / bipin
basically an asp.net application can contain only one
web.config file. so there is no possibility of using 2
web.config files for connection in an application.
Is This Answer Correct ? | 8 Yes | 37 No |
What is custom events?
Types of session management in ASP.NET ?
What is the maximum timeout we can set for Cookies?
What are the difference between overriding and overloading?
How we can force all the validation controls to run?
what is SAP fullform
161 Answers A3Logics, Amazon, DFD, Federal Mogul, Hol Info, IBM, Infosys, Jai Ganesh, Kesri Metal, Lupin, Microsoft, RPG, SAP Labs, SRS Group, TCS, Videocon,
How many rules are there regarding a well formed XML document? a) Nine b) Three c) Six d) Two
What are the disadvantages of asp.net?
What are validator? Name the validation controls in asp.net? How do you disable them?
what is caching?
Which adapter should you use, if you want to get the data from an access database?
What are the new data controls in asp.net 2.0?