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

Answer Posted / asmita

web.config file if root level file you do not need to create it it is mainly used for authentication authorization ,database connection etc







global.asax file mainly handles application and session events.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which two new properties are added in asp.net 4.0 page class?

700


How does exception management works in ASP.NET?

828


What is sql data source control in asp.net?

771


What is the difference between application state and session state in asp net?

746


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

856


What is the difference between session and viewstate in asp.net?

844


What are cookies in your browser?

709


What are the benefits of view state?

729


What is http session state?

691


Is asp.net outdated?

711


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

701


What is viewstate? In which event of the page life cycle, is the viewstate available?

791


What is preprocessor in .net? Where it use?

709


Explain the difference between sql invalidation and sql notification.

723


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

690