473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Binding data to a Drop Down List

I'm trying to bind data from a table in a database to a dropdownlist. I can
successfully add the connection and data adapter but when I add the dataset I
get and error during build.

The type or namespace name 'DataSet1' does not exist in the class or
namespace 'CiscoSpares.CiscoSpares' (are you missing an assembly reference?)

Any help???

Nov 19 '05 #1
2 1298
Where are you defining the DataSet1 variable? This may be a scope issue if
you don't have a class level declaration and you're trying to access DataSet1
from a method that doesn't have access to DataSet1.

Also verify that your project has a reference set to System.Data which is
the assembly that defines the DataSet type.
"Richard Pidcock" wrote:
I'm trying to bind data from a table in a database to a dropdownlist. I can
successfully add the connection and data adapter but when I add the dataset I
get and error during build.

The type or namespace name 'DataSet1' does not exist in the class or
namespace 'CiscoSpares.CiscoSpares' (are you missing an assembly reference?)

Any help???

Nov 19 '05 #2
"Richard Pidcock" <Ri************@discussions.microsoft.com> wrote in
message news:60**********************************@microsof t.com...
I'm trying to bind data from a table in a database to a dropdownlist. I
can
successfully add the connection and data adapter but when I add the
dataset I
get and error during build.

The type or namespace name 'DataSet1' does not exist in the class or
namespace 'CiscoSpares.CiscoSpares' (are you missing an assembly
reference?)

Any help???


If you used all the defaults, then the type of your strongly-typed dataset
is "DataSet1". The name of the instance added to your page would be
"DataSet11".

Can you show the line on which you are receiving this error?

John Saunders
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jason | last post by:
What interface do I need to implement in order to get a component with a public property to show up in the data binding drop down boxes at design time in VS.net? I've tried to look just about...
4
by: Darrel | last post by:
This is a followup to a previous question. I'm trying to grab some data and bind it to two different dropdown lists. (same data in each one). I can't seem to populate them both without resorting...
5
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1);...
3
by: Marnie | last post by:
Hi there I am new to VB.Net (formerly a Centura 'Gupta' programmer) and just trying to do a simple excercise out of the help to populate a couple of text fields on a form by using a parameterized...
0
by: dutone | last post by:
I have searched high and low for a solution to this and I dont think its possible.... but I hope not. What I have is a list of items with various values that can be changed via a drop down. Each...
2
by: bmayer | last post by:
I am using a detail view and binding it to a sql data source (at some point in the future it will be an object data source). I have seen the article "Working with Data is ASP.NET 2.0 ::...
1
by: MikeB | last post by:
ooh boy, I hope I'm in the right place to ask this. I'm trying to do a class project that binds controls to data sources. I have a Drop-down List that I bound to the Author column of an SQL...
3
by: Eric Layman | last post by:
HI, I have a select menu <select id="country" runat="server" class="myformat "> <option value="AFGHANISTAN">AFGHANISTAN</option> <option value="ALBANIA">ALBANIA</option>
9
by: =?Utf-8?B?VGVycnk=?= | last post by:
Think it is great the way that you can set up a datsource, value member, and display member for a combobox, and map a 'code' to a 'description' and back again by binding the combobox to a...
0
by: Leon Mayne | last post by:
We have static functions in our data access layer that return generic lists of our business objects, such as this: Public Shared Function AllUsers() as Generic.IList(of OurUserObject) Dim...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.