Global area
Where can i get the global area in a window based project in c#.net so that i can put my connection string there?????????????
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted Feb 20, 2010, 11:05 PM EST
and you can retrieve it in Programming like Below
string RetriveString = Properties.Settings.Default["YourConnectionString"].ToString();
Anshul Shukla14 reputationPosted Feb 20, 2010, 11:29 PM EST
But I dont want to retreive!!!!!
as we put connection string in web.config and use it!
likewise i want it here also!
Kirtan PatelRank #292 · 8.6K reputationPosted Feb 20, 2010, 11:33 PM EST
and you can Change it out side of application also by modify App.Config File without Modifiying ..whole application code :)
Enjoy ... :)