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?????????????
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Feb 21, 2010, 4:05 AM
and you can retrieve it in Programming like Below
string RetriveString = Properties.Settings.Default["YourConnectionString"].ToString();
Kirtan PatelPosted Feb 21, 2010, 4:33 AM
and you can Change it out side of application also by modify App.Config File without Modifiying ..whole application code :)
Enjoy ... :)
Anshul ShuklaPosted Feb 21, 2010, 4:29 AM
But I dont want to retreive!!!!!
as we put connection string in web.config and use it!
likewise i want it here also!