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

Answer Posted / saiish

web.config contains values.
global.config contains code.


n we cant place connection string code in global.asax.
we can place only in web.config.

Is This Answer Correct ?    6 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain transparent caching with aop?

688


What are the server controls in asp.net?

654


Describe session handling in a webfarm, how does it work and what are the limits?

796


How would you implement inheritance using c#?

762


What is the full meaning of asp.net?

702


Disable Mouse right click on web page in asp.net?

761


What are the modes of updation in an updatepanel?

726


witch is the best insistute in sharpoint course.what abt future of share point course.

2950


What is difference between Server.Transfer and Response.Redirect in ASP.NET?

778


How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.

5288


What's the difference between viewstate and sessionstate?

790


How you will handle session when deploying application in more than a server?

827


What is Web API?

827


Give 2 examples for scenarios when routing is not applied?

784


Explain what is postback in asp. Net?

765