Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


can i use two web.config files of ConnectionString in One
Default.aspx page

Answers were Sorted based on User's Feedback



can i use two web.config files of ConnectionString in One Default.aspx page ..

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

can i use two web.config files of ConnectionString in One Default.aspx page ..

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

can i use two web.config files of ConnectionString in One Default.aspx page ..

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

can i use two web.config files of ConnectionString in One Default.aspx page ..

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

can i use two web.config files of ConnectionString in One Default.aspx page ..

Answer / asif

No

Is This Answer Correct ?    10 Yes 12 No

can i use two web.config files of ConnectionString in One Default.aspx page ..

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

Post New Answer

More ASP.NET Interview Questions

what exception is thrown when you do a response.redirect

2 Answers   IBM,


how to do pakaging nd deployment

1 Answers  


What is the usage of DelegatingHandler?

0 Answers  


How many rounds are there for a software programmer to clear interview in any IT industries(MNC).

3 Answers   HCL,


Difference between server.Execute and response.redirect ?

5 Answers   Accenture, Keane India Ltd,


Is session stored in browser?

0 Answers  


What are Master Pages in ASP.NET?

0 Answers  


Can we add code files of different languages in app_code folder?

0 Answers  


What is viewstate?

5 Answers   Microsoft,


Can I stream live content/events?

0 Answers  


How do you relate an aspx page with its code behind Page?

2 Answers   Accenture,


What are the page life cycle events?

0 Answers  


Categories