954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

SQL Connection Strings

I have an existing connection string in my web.config file. I just added some code from another web developer into my website. Along with that I added a new ObjectDataSource control and configured it to look for the existing ConectionString which IS NOT an OleDbConnection, by using the following code.

[ Line 16: public static List GetUsers()
Line 17: {
Line 18: using (OleDbConnection connection = new OleDbConnection (ConfigurationManager.ConnectionStrings["ASPNETDB22"].ConnectionString))
Line 19: { ]

Can anyone tell me how I can change the above code to use a DataSource connectionString ?
[

Missouri_Mule
Newbie Poster
7 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You