Posted on 2007-04-05
Last Modified: 2008-03-10
In MS Visual Studio.NET I am trying to make a simple data display page as part of a WebApplication, but I cannot instatiate the SqlComnnection or SqlDataAdapter object.

When i attempt to reference it, i get the following error:

"Dim myDA As New sqldataadapter" --> TYPE SQLDATAADAPTER NOT DEFINED

I have created a simple DataGrid object on the same page, and populated it with an sql Table using the drag-and-drop method.  This works Fine.  However, i want to be able to code the page manually.

Pls help
Question by:PeterMatthews

Accepted Solution

dctuck earned 500 total points
ID: 18856806

Imports System.Data.SqlClient

at the top of the file you are working in

Author Comment

ID: 18856823
Thanks DC!

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now