Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the Difference between Web.config and global.asax?
Can we write connection String code in global.asax?

Answer Posted / pragati

1. Web.config : It is an XML File
Global.asax file : It is an .asax file that is a class file

2. Web.config : We can have one or more web.config file.
Global.asax file : We can have only one global.asax files in one single application

3. Web.config : It consists of - a)Error Handling Codes b)Authentication c)Authorization
Global.asax file : It consists of - a)Application Events b)Session Events c)#include directive d)<object>declarations e)TypeLibrary Declarations

4. Web.config : It consists of ) HTTPHandlers
Global.asax file : It consists of declaration of objects,variables and methods.

5. Web.config : It is created by default thus,indicating its compulsion.
Global.asax file : It is an optional file.

6. Web.config : It is written in the form of HTML Tags.All configurations are mentioned in the <configuration> tag.
Global.asax file : All the code is written in valid browser scripts like JScript PerlScript, VBScript.

7. Web.config : It just needs to be saved and not be compiled to reflect the changes.
Global.asax file : It needs to compiled/rebuild to reflect the changes

8. Web.config : It consists of (a) HTTPHandlers
Global.asax file : It consists of events like :
(a)Application_OnStart
(b)Application_OnEnd
(c)Session_OnStart
(d)Session_OnEnd

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain advantages of caching?

884


Explain login controls.

1058


Explain the asp.net mvc request life cycle? : asp.net mvc

937


Briefly describe the role of global.asax?

932


What are the differences between code behind and code inline?

1009


Describe state management in asp.net?

997


How does session id work?

844


What is data grid view in asp.net?

899


What are the different types of cookies in asp.net?

971


What is different authentication mechanisms used in ASP.NET?

1050


Differentiate between globalization and localization.

932


What is the difference between the get method () and post method ()?

930


Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?

930


Where web.config file is used?

1028


Define xmlreader class.

952