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

Which is faster viewbag or viewdata?

568


Explain the differences between managed and unmanaged code?

502


What is meant by web application?

550


Can you explain one critical mapping? Performance issue which one is better? Whether connected lookup tranformation or unconnected one?

814


If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

554






How do you declare static variable? What is its lifetime?

512


What does asp stand for in asp.net?

527


Which is the parent class of the ASP.NET server control?

545


What is semantic gap?

627


Describe paging in asp.net?

678


What is full trust in asp.net?

550


Write a code for passing ArrayList in Web API?

1061


Which is faster viewdata or viewbag?

546


What is cookies cache and session?

548


What do you mean by serialize and marshalbyref?

573