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

Answer Posted / umesh

web.config file is the root page in the application we use
this file to make the connection with the database,we can
use theme attribute,authentication etc.

Where as global.asax file is for handling the Application
or page level error.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?

764


What is session authentication?

727


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

788


Define cookie.

748


What is inproc mode in session?

678


Explain about Application and Session Events ?

813


Explain security types in asp.net?

768


What is session id in web application?

755


What is the difference between user control an custom control?

825


Is asp.net and .net the same?

694


What is the difference between client-side and server-side validations in webpages?

766


Explain some of the major built-in objects in asp.net

785


Explain the use of fragment caching.

836


How to display Alert in ASP.NET

829


What is server components?

755