DataList Dynamic Controls on DataBinding with ObjectDataSource

T

TheDude5B

HI,

I am creating a DataList by using the SelectMethod from an
ObjectDataSource. Within each item I want to be able to the
dynamically create a drop down list depending on what the ProductID is
which is being pulled from the ObjectDataSource.

How can I do this?

Protected Sub DataList2_DataBinding(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DataList2.DataBinding

Some sort of code which finds the ProductID for each row,
then can create the drop down list from this ID.

End Sub

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top