p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB.NET 2002/2003 Basics (http://p2p.wrox.com/forumdisplay.php?f=76)
-   -   Using Visual Studio Net With Beg ASP.NET (http://p2p.wrox.com/showthread.php?t=27244)

sirandre007 March 23rd, 2005 02:22 PM

Using Visual Studio Net With Beg ASP.NET
I can not get my dropdownlist to display data.

I created a webform connected to a access db via OLEDB JET4.0

Created a OleDbConnection1

Created a OleDataAdapter1 Using Generate Dataset

Created DsLogin1 from table tblLoginInfo via query build

From the toolbox I added a dropdownlist to the form and in the properties I changed

DataMember: tblLoginInfo

DataSources: Login1

DataTextField: EmpID

DataValueField: EmpID

I assume this is a databind issue, so is this a property setting some where or code that I have to add?

If you know a walkthrough that shows this please point me in the right direction.

I have several books on .net (WROX), but none use VS .net examples.


jbenson001 March 23rd, 2005 02:38 PM

Are you using a Data Set? Are you sure your query is working? Check to make sure rows are being returned. Please post your code, it would help in figuring out your problem.


sirandre007 March 23rd, 2005 03:27 PM

I used Visual Studio to generate the OLEDBconnection, OLEDBDataAdapter, then clicked the Generate Dataset under the OLEDBAdapter Property window to create the dataset dsLogin1.

I then added a dropdownlist from the toolbox, and changed the properties listed to, DataMember: tblLoginInfo, DataSources: Login1, DataTextField: EmpID, DataValueField: EmpID .

When I click preview in browser it does not show any data. My question is on the dropdownlist should I use the databind property or do I need to code databind() or fill dataset in my On_Page Load code?

All times are GMT -4. The time now is 08:44 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.