What is the Difference between Web.config and global.asax?
Can we write connection String code in global.asax?

Answer Posted / hridya

We can place connction str in global.asax

bt

web.config file is generally considered a better place
because it's a
simple text file that is easily updated without needing to
recompile
anything and changes go into effect immediately.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe session handling in a webfarm?

566


What is the best Macanism to clear the Cache in asp.net

715


What is the difference between CC and BCC?

618


What is the default timeout for a cookie?

564


Is it possible for me to change my aspx file extension to some other name?

586






How response object is related to asp's response object?

525


What is session in http request?

558


What are the benefits of view state?

556


Explain cookies with example.

562


Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

557


Define viewstate in .net?

546


Explain the difference between sql invalidation and sql notification.

559


What's the use of response.output.write()?

768


What is the biggest disadvantage of “Other Return Types” in Web API?

942


What is the purpose of using MVC programming pattern in ASP.NET?

560