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

What is autopost?

528


how to debug web services on consumer side?

580


Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?

646


What is a windows service?

558


What is a global postback url?

515






How can you pass multiple complex types in Web API?

576


What is caching? What are different ways of caching in asp.net?

664


What do you mean by role-based security?

569


How to display Alert in ASP.NET

647


Explain how do you deploy your asp.net application?

481


What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

536


How can I open ashx file in mobile?

622


Why would a company use an application service provider?

496


What is the difference between custom controls and user controls?

481


What is the extension of master page in asp.net?

551