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

What is viewstate in asp net with example?

610


What are the main advantages of using asp.net?

636


If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.

737


What do you mean by serialize?

634


How do session tokens work?

616






What are the types of validation in asp net?

633


Define the term Scavenging in Caching?

663


Can we handle the error and redirect to some pages using web.config?

1054


what is publisher?

1737


What is the life cycle of an asp.net page?

608


Describe the diffeerence between inline and code behind?

583


What is a postback in asp net?

640


Explain what are webservices?

639


How can we communicate with each server in N-tier Architecture? and what are the methods?

1870


What is a reflection?

653