Quick Question

Discussion in 'Databases' started by Karen, May 25, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I'm building a website in ASP.NET using Visual Studio .NET that will be writing information to a database. I'm trying to open a connection to the database within my code.

    I've imported System.Data and System.Data.SqlClient in my HTML code.

    Now, I'm trying to:

    Dim myConnection as SqlConnection

    within a click-event of a button. Visual Studio is putting a blue squiggly line under SqlConnection as though it doesn't recognize it. Why is this? Have I missed something?

    Thanks!
     
  2. Nevermind! I figured out that I need to do this:


    Dim myConnection As New System.Data.SqlClient.SqlConnection


    Thanks to whoever may have read this.


    Steph
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page