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

Explain serialization and deserialization?

554


Can you explain the importance of finalize method in .net?

596


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

529


What is the difference between Session and response.Redirect?

620


Explain the significance of routing? : asp.net mvc

542






How can we create pie chart in asp.net?

591


Explain State management in asp.net

628


What is the difference between exe and dll?

559


Explain the difference between AutoPostBack and IspostBack in ASP.NET?

607


Is there any property names “isnavigating”?

581


How do u optimize a query in asp.net?

573


What is a web api endpoint?

537


Is post back in asp.net?

522


What is event in asp.net?

540


Can more than one person use the same login?

576