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

Answer Posted / saiish

web.config contains values.
global.config contains code.


n we cant place connection string code in global.asax.
we can place only in web.config.

Is This Answer Correct ?    6 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the session management techniques asp net?

566


what are the ihttphandler and ihttphandlerfactory interfaces ?

516


What is asp.net web pages?

532


What are the different kinds of assemblies?

521


What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC

506






Which method do you use to enforce garbage collection in .net?

522


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

597


Can we override the enablepartialrendering property of the scriptmanager class?

646


What’s difference between “optimistic” and “pessimistic” locking?

580


How does exception management works in ASP.NET?

620


What is asp net objects?

527


What is difference between view and partial view?

510


Where session variables are stored?

546


What are the different types of events are occured when a client requests an ASP.NET page from IIS server?

585


What is is post back property in asp net?

540