What is web.config file ?

Answer Posted / tanuj kumar

Web.config file is the configuration file for the Asp.net web application. There is one web.config file for one asp.net application which configures
the particular application. Web.config file is written in XML with specific tags having specific meanings.It includes databa which includes
connections,Session States,Error Handling,Security etc.
For example :
< configuration >
< appSettings >
< add key="ConnectionString"
value="server=localhost;uid=sa;pwd=;database=MyDB" / >
< /appSettings >
< /configuration >

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you load dynamic assembly? How will create assesblies at run time?

709


Explain client-side scripting?

767


What is the default authentication mode for asp.net?

798


What is the question mark in a url?

718


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

712


Define data caching?

703


What is the postback property in asp.net?

715


How we can force all the validation controls to run?

742


Differentiate strong typing and weak typing

728


How to implement Authentication and Authorization?

776


Who generates session id?

681


If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

796


Why is mvc better than asp.net?

759


What is protected configuration?

846


What is AutoPostback?

812