Reply
DropDownList query from DB
Old 01-04-2007, 11:37 PM DropDownList query from DB
Junior Talker

Posts: 4
Hi,

Please help with the following codes:



{
// Put user code to initialize the page here
DataSet dsF;
dsF =
new DataSet();
FamilyAdapter.Fill(dsF,"Family"); <--- Error in this line, what's wrong? FamilyAdapter.Fill(dsF) also gives error
ProductDropList.DataSource = dsF;
ProductDropList.DataMember = "Family";
}



//Samples:
// cboVendors.DataSource = dsV.Tables("VENDORS")
// cboVendors.DisplayMember= dsV.Tables("VENDORS").Columns("WhateverYouWantToDi splay").Caption

//adding items with DataRow from DataSet
// For Each drCustomers In dsCustomers.Tables("Customers").Rows
// cbo.Items.Add(drCustomers("CompanyName"))
// Next


Please reply ASAP. Thanks a lot.


Chia is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Reply     « Reply to DropDownList query from DB
 

Thread Tools

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12234 seconds with 12 queries