Hi All,
I have the following signature for a function:
in another event Im creating a buttonlist control:Code:protected void Option_SelectedIndexChanged(object sender, EventArgs e) {.......}
I need to bind myradiobuttonlist SelectedIndexChanged event to my method above, how do I do that please. I thought it might be the following, but the compiler doesn't like it.Code:RadioButtonList myradiobuttonlist = new RadioButtonList(); myradiobuttonlist.AutoPostBack = true; myradiobuttonlist.ID = "RoomOptionsRadioButtonList" + roomIndex.ToString();
Although I think I need to Bind to the Option_SelectedIndexChanged event, it might be ok if it has it's own event and this event calls Option_SelectedIndexChanged.Code:myradiobuttonlist.SelectedIndexChanged += new Option_SelectedIndexChanged(myradiobuttonlist,new System.EventArgs);




Reply With Quote