GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 130 of 165    Print  
What is the functionality of Web.config file in ASP.NET?

  
Total Answers and Comments: 3 Last Update: July 14, 2008     Asked by: goldjoy 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 19, 2006 09:48:51   #1  
Deepak        

RE: What is the functionality of Web.config file in AS...

Web.config file as it sounds like is a configuration file for the Asp .net web application. An Asp .net application has one web.config file which keeps the configurations required for the corresponding application. Web.config file is written in XML with specific tags having specific meanings.

We have Machine.config file also. As web.config file is used to configure one asp .net web application same way Machine.config file is used to configure the application according to a particular machine. That is configuration done in machine.config file is affected on any application that runs on a particular machine. Usually this file is not altered and only web.config is used which configuring applications.

Deepu


 
Is this answer useful? Yes | No
February 27, 2007 05:25:56   #2  
AbhinavJain Member Since: February 2007   Contribution: 1    

RE: What is the functionality of Web.config file in AS...
Web.Config is nothing but a file that contains the configuration information of our web application.
Its contains the information that tells how the application will behave under certain circumstances.
The settings in the Machine.Config file can be overridden with respective setting in web.Config for that particular application.
In this way you can make your application to behave different as compared to other application in the same Machine.

 
Is this answer useful? Yes | No
July 14, 2008 00:30:41   #3  
ynvpavan Member Since: September 2007   Contribution: 16    

RE: What is the functionality of Web.config file in ASP.NET?

Configuration information for ASP.NET resources is contained in a collection of configuration files each named Web.config. Each configuration file contains a nested hierarchy of XML tags and subtags with attributes that specify the configuration settings. Because the tags must be well-formed XML the tags subtags and attributes are case-sensitive. Tag names and attribute names are camel-cased which means that the first character of a tag name is lowercase and the first letter of any subsequent concatenated words is uppercase. Attribute values are Pascal-case which means that the first character is uppercase and the first letter of any subsequent concatenated words is uppercase. Exceptions are true and false which are always lowercase.

All configuration information resides between the <configuration> and </configuration> root XML tags. Configuration information between the tags is grouped into two main areas: the configuration section handler declaration area and the configuration section settings area.

Configuration section handler declarations appear at the top of the configuration file between <configSections> and </configSections> tags. Each declaration contained in a <section> tag specifies the name of a section that provides a specific set of configuration data and the name of the .NET Framework class that processes configuration data in that section.

The configuration section settings area follows the <configSections> area and contains the actual configuration settings. There is one configuration section for each declaration in the <configSections> area. Each configuration section contains subtags with attributes that contain the settings for that section.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape