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

How do you secure your configuration files to be accessed remotely by unauthorized users?

747


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

715


Which .NET framework supports Web API?

686


What is the exact purpose of http handlers?

654


Explain automatic memory management in .net.

679






What are the Types of session management in ASP.NET

646


Where session variables are stored?

637


In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?

683


What are ASP.NET Web Forms? How is this technology different than what is available though ASP?

1085


What is marshalling ? Is it a part of asp.net ?

710


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

745


What is the difference between asp.net and mvc?

675


What is asp.net master page?

641


What is the use of placeholder control? Can we see it at runtime?

686


Describe the application event handlers in ASP.NET?

652