Web.config –configuration file for ASP.NET web application.
This article tells what web.config file is, how to write this and how this file is used by run time to apply settings.
Web.config is an XML file which specifies settings and configuration for your web application written in ASP.NET. You can use any text editor like notepad or xml parser to edit settings in this configuration file. This file contains information regarding security, session, compilation, app language and database connection strings.
The root of web application contains initial Web.config file for that application. Multiples files with same name can be placed in sub directories of web application to control configuration settings for the files placed in that sub directory. Web.config files placed in sub directories can add certain configuration settings to the settings inherited from web.config file of parent directory. The settings in sub directory can override the settings specified in parent directory.
The file %SystemRoot% \Microsoft.NET\Framework\version\CONFIG\ machine.config is default configuration file which contains configuration settings regarding ASP.NET for web server. The configuration settings for every URL resource are determined at run time from the configuration settings specified in the various web.config files in hierarchy up to that file. These settings are then cached for future requests. Any changes in settings specified in web.config files in hierarchy are reflected when a request is made to the resource and this configuration information is re cached for that resource. So there is no need of restart server, sort of things to make changes in settings effective.
appSettings tag of web.config file is used to store connection strings and global variables sort of things. This is something like key value pair.For example
This value of connString can be used anywhere throughout your web application using
ConfigurationSettings.AppSettings["ConnString"]; statement.
Happy Coding.
-
What is System DSN? how to use it in ASP for connecting to DATABASE
| By rajeshchoudhary | in Programming
This article tells all about Data Source Name(DSN) DSN types uses.this also describes how to create a DSN to SQL se...
-
HOW Accelerating Internet connection HANDPHONE NOKIA 3230
| By dropsis_bukisa | in General
So needed in the connection speed is the speed KDU cable itself, and the location of the position you are then from...
-
Laptop Connect: No strings wireless broadband by GoldenIT
| By chris77 | in Web Development
Some people may disagree, some may be ashamed to admit it, but web access is an essential part of our modern lives,...
-
Simple MySQL tutorial
| By Mattinblack | in Web Development
MySQL is a free to use database program that follows the SQL language guidelines so what you will learn here applie...
-
A Brief Overview of SQL Injection
| By mmrz | in Programming
SQL Injection is a technique of injecting code and exploiting security holes in a database application. Injections ...
-
Build A Free Ecommerce Store Front In Less Than An Hour | By AaronMeagher | in Web Development
Are you looking to start selling online and want a quick and easy solution for your ecommerce storefront? While yo...
-
Black Hat SEO Techniques | By ChandraK | in Web Development
Black hat SEO is a technique that is used to get higher ranking for the website in a base manner. Black hat SEO is ...
-
White Hat SEO Techniques | By ChandraK | in Web Development
White hat SEO is a method that follows all the required webmaster guidelines in effective building of the website. ...
-
Create a panoramic image slideshow in Dreamweaver | By extendstudio | in Web Development
In this tutorial we will make a moving panorama slideshow using Creative DW ImageshowPro and Dreamweaver. We will c...
-
Google Development and Google API Topics | By OGolden | in Web Development
Abundant information is available on Google Data API topics....
-
Using remote desktop in windows XP | By rajeshchoudhary | in Computers
if you want to connect to a machine remotly using Remote Desktop Connection, remote Desktop in target machine needs...
-
setting password wisely for your accounts | By rajeshchoudhary | in Computers
Incidents of information phishing and hacking are happening every now and then. One fine day morning you wake up to...
-
LAMP-Open Source Solution Stack for web develpoment | By rajeshchoudhary | in Web Development
This article tells about LAMP solution stack which is being used to develop and deploy complete website....
-
php.ini –configuration file for PHP | By rajeshchoudhary | in Web Development
This article tells about PHP’s configuration file php.ini and how to write your own php.ini file to apply custom ...
-
How to enable/disable cookies in Firefox 3.x? | By rajeshchoudhary | in General
This article tells about cookies and how to enable/disable these cookies in Firefox....








No comments yet.