firing events for the controls inthe edit item tem

prometeusx

New Member
i have a datagrid with edit item template columns in which i have embedded dropdown list.can i fire any events, when i change the selection on the dropdownlist.i.e i need to change the items of one of the dropdown list if the selected item changes in the other. will that be possible. <BR>the problem is I donot know how to get the dropdownlist object which is in the datagrid.Because the id for the controls are generated at runtime.though i can get those id of the controls using javascript I wnated it dynamic.<BR><BR>answers to this question will be greatly acknowledged <BR>thank you.You can get the item by using the following:<BR><BR>Public Sub create_item(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs)<BR>Dim ib As System.Web.UI.WebControls.ImageButton<BR>lbl = e.Item.FindControl("clus_lbl")<BR>End sub<BR><BR>My example is with a datalist and image button, but it works the same way.hi,<BR>Thank u for u info. but still by using the code given by u it will be possible to read the properties of the controls within the list. but will it be possible to change the properties at run time or will it be possible to catch the events fired by those controls at runtime?<BR><BR>thank u<BR>
 
Back
Top