Select Categories Below
Status: Closed Points: 125 Time: 12:16 - Jul 01, 2007
bc030400030
In Asp.NET 2.0 how i load a column from database table into dropdown list? if any one want to help me then please make the code for it i'll be very thankful to him.
Categories:
Add Categories
When adding more than one category, separate them with commas.
Advertisement
PeterNZ
Date:: Jul 01, 2007
Time:: 23:56
I found this on the webpage http://www.aspfree.com/c/a/ASP.NET/ASPNE... Me.DropDownList1.Items.Clear() Dim da As New SqlDataAdapter("select productID,ProductName from Products", "data source=.;initial catalog=northwind;user id=sa") Dim ds As New DataSet da.Fill(ds, "Products") da.Dispose() Me.DropDownList1.DataSource = ds.Tables("Products") Me.DropDownList1.DataTextField = "ProductName" Me.DropDownList1.DataValueField = "ProductID" Me.DropDownList1.DataBind() Hope this helps Cheers Peter
Date:: Jul 05, 2007
Time:: 03:42
thanks. it works.
Question Answered
This question has been closed, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for the Summary Area.
Answer this Question
New User
Email:
Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address
Registered User
Username:
Password:
Forgot Your Password?
Enter your email address below and we will resend your login information to you.
Login Information Sent
Questions
hover gallery.
How long does Google and MSN store emails that can...
Does the United States Government have a CIO posit...
How do you turn off the signature option in the ad...
audio quality- when playing music/video's, the sou...
Thanks for your reply. Where are you located? Whic...
You have 100 characters to use
Rank
Expert
Points
1.
738
2.
495
3.
450
4.
297
5.
215
6.
75
7.
50
8.
9.
10.
30
Register today to share your knowledge with the community and be recognized and rewarded for your contributions.
Register Here
"Psst, Quomon is a great site. Pass it on." Tell a Friend | Link To Us | Save to Delicious | Digg it
Language Options
English:
Español:
Sponsors
Questions and Answers Software Real Estate Postcards Marketing Fulfillment