If you want to capture the selected value as soon as the user changes
the value, use a WebControls.RadioButton, set AutoPostBack to true,
and assign an event handler to CheckChanged event (just double click
in the properties window).
Another option is to let the user adjust the selections for multiple
rows and hit a submit button. In this case you can loop through the
repeater items on the server and extract the value for each button.
I have an example of looping through a repeater to get the value of
TextBox controls towards the end of the following article, so this
should provide some insight:
http://odetocode.com/Articles/116.aspx
--
Scott
http://www.OdeToCode.com/blogs/scott/
On 11 Jul 2004 17:03:24 -0500,
cr*********@hotmail-dot-com.no-spam.invalid (julk) wrote:
hi i am using a repeter to show some option in a form. this option
are
radio buttons. the item template for my repeter loks like this
<ItemTemplate>
<input type="radio" runat="server"
id="membership"
name="membership" value='<%#
DataBinder.Eval
(Container.DataItem,
"Name")%>'>
<%# DataBinder.Eval(Container.DataItem,
"Name")%>
<br>
</ItemTemplate>
every thing displays great and when i look a the html generated the
radios have their "value"property set correctly.
my question is how do i get the value of the radiobutton that was
selected?
has any one done this. if so please help :!: