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

Answer Posted / abhishek vyas indore

web.config file is generated automatically if we are run a application in first time a but gloabal.asax file is not generated its a optional file,

web.config is a xml file where global.asax is class file
web.config file is more efficient as compared to global.asax

Is This Answer Correct ?    24 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to implement role based security in asp.net mvc? : Asp.Net MVC

623


In a Repeater control how one can provide an alternating color scheme ?

774


I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)

1711


Define the term Scavenging in Caching?

770


Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

734


How do I upload a file from my ASP.NET page?

767


How should I destroy my objects in asp.net?

780


Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?

839


Explain MVC model binders?

798


What is mvc in asp.net interview question? : Asp.Net MVC

692


Explain About duration in caching technique

825


How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?

1771


What is the advantage of using Windows authentication in a Web application?

793


What can we do with asp.net?

682


What is session in asp.net?

692