Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2005, 02:22 PM
Registered User
 
Join Date: Jan 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Thanks.



 
Old March 23rd, 2005, 02:38 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

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.

Jim
 
Old March 23rd, 2005, 03:27 PM
Registered User
 
Join Date: Jan 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?








Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create ASP page in visual studio.net madhusrp Other Programming Languages 3 March 2nd, 2006 03:07 AM
CLassic ASP in Visual Studio.NET rodmcleay ASP.NET 1.0 and 1.1 Professional 2 September 6th, 2004 08:06 PM
Visual Studio ASP.NET HELLLPPP!!! Kimmer527 ADO.NET 2 July 17th, 2004 12:23 AM
Creating ASP.NET Application in Visual Studio.NET Maxood ASP.NET 1.0 and 1.1 Basics 1 March 8th, 2004 01:56 PM





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