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

How does ASP.NET framework maps client side events to Server side events.?

552


Explain exception handling in .net.

614


How do I open an ashx file?

541


Is asp.net web forms dead?

513


Why session management is required?

540






Define session in asp.net.

561


What are sharepoint pages?

498


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

557


Name the namespace which is used by ado.net?

531


Web API uses which library for JSON serialization?

569


Explain client-side scripting?

574


What is web router?

505


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

653


Are cookies stored on server or client?

505


How can we register exception filter from the action?

668