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
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Bobby2 pointsPosted Feb 4, 2007, 1:08 PM EST
string conn=Properties.Settings.Default.ConnStr;
Where ConnStr is the name that you gave it in Settings Editor.
Bobby