Run into the bug that is detailed here today only with asp.net 2.0 datalists, has anyone else seen this?
// elm is the selected radiobutton.
Would it not be simpler to use an html control with runat=server in some sort of repeater (or build a control that does this) and take control of the html output rather than fiddle with the html's state on the client side?
I'm talking about is determining which repeater item is selected on the server side. Client side doesnt really help me unless I can do some sort of callback in the method...
Possibilities for server side...
Loop through the controls in the repeater and look for a selected radio button. Determine the repeater item from there?
I've tried the following to get the value server-side, but it doesn't seem to work for me:
If IsPostBack Then
For Each ri As RepeaterItem In Answers.Items
Dim AnswerButton As RadioButton
AnswerButton = CType(ri.FindControl("AnswerButton"), RadioButton)
If AnswerButton.Checked Then
Me.answer = ri.ItemIndex.ToString()
Can i get solution for this problem. like which radiobutton is selected
thank you for your coding travis