|
-
July 19th, 2012, 11:36 AM
#2
Re: Trouble using App.Config ConnectionString (String works don't understand code)
OK I think I've figured out how to retrieve the ConnectionString. I'm testing it now.
public static string str = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
However, i must say, i've read tons of articles on the internet about app.config and never once ran across how to do this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|