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

Is a dll file an executable?

1036


Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

1010


What is difference between viewstate and session in asp net?

1038


What is a pixel url?

942


where can i gather the materials for MCP certification

5300


Do you know caching feature?

965


What is the advantage of mvc over asp.net? : Asp.Net MVC

978


Explain how can we access static variable?

1140


How do we access view state value of this page in the next page?

1001


What is the used of "ispostback" property?

1123


Can you change a master page dynamically at runtime? How?

933


What is global.asax file used for?

1027


What role “#&&” plays in a querysting?

1018


When was asp.net released?

1025


Are xaml file compiled or built on runtime?

976