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 / dasharatham

sorry to the above answer which is applicable to ASP.NET
application folders..


web.config is which is used for settings to an application
in future requirement.

Global.asax which is handling application level events and
session level events..

I expected we can place the connection string like this
void Session_Start(object sender, EventArgs e)
{
Application["sqldb"] = ConfigurationManager.AppSettings
["constr"].ToString();
}

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

2302


Explain the concept of View Model in MVC?

965


Explain the difference between inline and code behind - which is best in?

955


What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?

994


Which library is used by the testers and developers to develop automated tests and create testing tools?

932


What are the components of ado.net?

906


Explain Areas in MVC?

1029


When we use cookie less session? Explain its working?

948


Define the term Scavenging in Caching?

981


What is the full meaning of asp.net?

983


Name the tools or API for developing or testing web api?

899


What are web server controls in asp.net?

1028


What is globalization and localization in asp net?

912


What is web configuration file and how to use in web application

970


What is a reflection?

933