Solved

TYPE SQLDataAdapter NOT DEFINED

Posted on 2007-04-05
2
713 Views
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
Regards
0
Comment
Question by:PeterMatthews
2 Comments
 
LVL 7

Accepted Solution

by:
dctuck earned 500 total points
ID: 18856806
Put

Imports System.Data.SqlClient

at the top of the file you are working in
0
 

Author Comment

by:PeterMatthews
ID: 18856823
Thanks DC!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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

14 Experts available now in Live!

Get 1:1 Help Now