What is the use of web.config file? [Resolved]

Posted by Sridevi under ASP.NET on 4/19/2012 | Points: 10 | Views : 47266 | Status : [Member] | Replies : 8
Could anyone give short explanation about the use of web.config file?

Regards,
Sridevi

Sridevi


Responses

Posted by: Sakthi.Singaravel on: 4/19/2012 [Member] Silver | Points: 50

Up
0
Down

Resolved
The web.config file contains information that control module loading, security configuration, session state configuration, and application language and compilation settings. Web.config files can also contain application specific items such as database connection strings.



Regards,
Singaravel M

Sridevi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 4/19/2012 [Member] Silver | Points: 25

Up
0
Down
This files has the Application settings of that asp application..

these settings write in xml...

Regards,
Singaravel M

Sridevi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunny4989 on: 4/19/2012 [Member] Starter | Points: 25

Up
0
Down
It is a configuration file used in asp.net.
It is an XML file
Configuration tag is the root element
Web.config acts as a central location for storing the information to be accessed by web pages.

Uses

- The changes in Web.config don't require the reboot of the web server.
- store database connections, Session States, Error Handling, Security configurations in ASP.NET web.Config file.


------------------------------------------------
Learn throughout life

Sridevi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dotnetrajanikanth on: 4/19/2012 [Member] Starter | Points: 25

Up
0
Down
Web.config file is the main settings and configuration file for an asp.net web application. the file is an xml document that defines configuration settings and information regarding the web application. It can be considered as one of the most essential part of a web application.

____________
www.flickr.com/photos/psdesigner/

Sridevi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sridevi on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
Thanks Rajani. Your explanation is very clear.

Sridevi

Sridevi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dotnetrajanikanth on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
Thank you!!

____________
www.flickr.com/photos/psdesigner/

Sridevi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankit_Parmar555 on: 4/21/2012 [Member] Starter | Points: 25

Up
0
Down
very nice question i like it.
this question is also very important for interview.
Generally web.config file is use for application's configuration setting.
We can put common settings regarding particular web application.
for example -
connection string.
common configuration settings. etc.....


Sridevi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sriramnandha on: 5/23/2012 [Member] Starter | Points: 25

Up
0
Down
WEB.CONFIG FILE IS THE CONFIGURATION SETTINGS FOR AN ASP.NET WEB APPLICATION
APP.CONFIG FILE IS THE CONFIGURATION SETTINGS FOR THE WINDAOWS APPLICATION

USING WEB.CONFIG FILE WE IMPLEMENT
1) DATABASE CONNECTION STRING
2) SESSION
3) TRACING
4) ERROR HANDLING

DATABASE CONNECTION FOR WEB.CONFIG

<ADD KEY="NAME" VALUE="CONNECTIONSTRING">


REGARDS



sriram

Sridevi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response