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

Answer Posted / abhishek vyas indore

web.config file is generated automatically if we are run a application in first time a but gloabal.asax file is not generated its a optional file,

web.config is a xml file where global.asax is class file
web.config file is more efficient as compared to global.asax

Is This Answer Correct ?    24 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is http session stored?

503


What is viewstate in asp net with example?

525


Define viewstate in .net?

544


What is master page in dtp?

547


What is ipostback?

603






Explain the asp.net page life cycle.

556


What is the difference between user control an custom control?

617


Explain how is a property designated as read-only?

553


Why do we use web config?

520


How response object is related to asp's response object?

521


Where are session variables stored?

513


What is server infrastructure?

616


Difference between application events and session events

593


Can you explain how ASP.NET application life cycle and page life cycle events fire?

568


What is state management in .net?

611