Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 23rd, 2005, 02:22 PM
Registered User
 
Join Date: Jan 2004
Location: Bath, MI, USA.
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.



Reply With Quote
  #2 (permalink)  
Old March 23rd, 2005, 02:38 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
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
Reply With Quote
  #3 (permalink)  
Old March 23rd, 2005, 03:27 PM
Registered User
 
Join Date: Jan 2004
Location: Bath, MI, USA.
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?



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:27 AM.


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