access application settings from code
Hi ,
i stored my connection in application settings i.e. project > properties> settings tab.
Now i need to access the connection string from code. How do i do it ??
any help is appreciated,
yojimbo
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.
BobbyPosted Feb 4, 2007, 6:08 PM
string conn=Properties.Settings.Default.ConnStr;
Where ConnStr is the name that you gave it in Settings Editor.
Bobby