Hi,

I would like to add handler to a dropdownlist which is dynamically created. I have the following code:

Dim ddl1 as new Dropdownlist

ddl1.DataTextField = "Hours"
ddl1.DataValueField = "HourID"
ddl1.DataSource = GetHours()
ddl1.DataBind()

How can I add handler to the ddl1 so that when ddl1 selected index changed, then the text in the ddl1 will be assigned to Textbox1.text?


Can anyone advice?