binding problem with drop down list

endeavourford

New Member
I am trying to DataBind() Values to a dropdownlist from and output value returned by a stored procedure. Can this be done or do I need to just use a select statement?I cant remember the exact syntax for these events, but what you need to do is create a dataAdaptor to act as the bridge between your database and your user interface, then declare and populate a dataTable (or a dataSet, and, implicitly a dataTable), referencing the dataadaptor that brought back the info from the DB.<BR><BR>Set the dataTable as the dataSource for the dropdown list, and NOW you use the databind method to fill the listbox.<BR><BR>The fact that the info comes from a stored procedure should not matter.
 
Back
Top