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

How many types of sessions in asp.net?

1076


What is event in asp.net?

983


Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?

957


What is skin in asp.net?

911


What is session object? Describe in detail.

984


What is asp.net response object?

1011


How you can return View from ASP.NET Web API method?

988


Where is session cookies stored?

927


Describe the events in the life cycle of a web application.

1041


What are the main requirements for caching?

995


Explain the difference between the web config and machine config.

982


What is a 404 redirect?

1010


Can you explain the importance of finalize method in .net?

997


What is the concepts of globalization and localization in .net?

906


Explain how can we inherit a static member?

952