S
Sergio
Hi,
i have a gridview whit 2 columns: a BoundField connected whit a database
and a TemPlateField with 3 radio button like this
<Columns>
<asp:BoundField DataField="Domanda" HeaderText="Domanda" />
<asp:TemplateField HeaderText="Seleziona">
<ItemTemplate>
<input name='<%# Eval("ID") %>' type="radio" value="0"
/>Insufficiente<br />
<input name='<%# Eval("ID") %>' type="radio" value="1"
checked="checked"/>Sufficiente<br />
<input name='<%# Eval("ID") %>' type="radio" value="2"
/>Buono
</ItemTemplate>
</asp:TemplateField>
</Columns>
From code i can read value from the 1st column and , e.g., put it on a listbox
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
EventArgs) Handles Button1.Click
For i = 0 To GridView1.Rows.Count - 1
ListBox1.Items.Add(GridView1.Rows(i).Cells(0).Text
Next
End Sub
but i don't have any idea to read the value of the RadioButton!!!
My be i'm confusing with asp (not aspx) but in aspx i don't know what i must
to do :-(
I'm using vb 2008. Thank's
i have a gridview whit 2 columns: a BoundField connected whit a database
and a TemPlateField with 3 radio button like this
<Columns>
<asp:BoundField DataField="Domanda" HeaderText="Domanda" />
<asp:TemplateField HeaderText="Seleziona">
<ItemTemplate>
<input name='<%# Eval("ID") %>' type="radio" value="0"
/>Insufficiente<br />
<input name='<%# Eval("ID") %>' type="radio" value="1"
checked="checked"/>Sufficiente<br />
<input name='<%# Eval("ID") %>' type="radio" value="2"
/>Buono
</ItemTemplate>
</asp:TemplateField>
</Columns>
From code i can read value from the 1st column and , e.g., put it on a listbox
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
EventArgs) Handles Button1.Click
For i = 0 To GridView1.Rows.Count - 1
ListBox1.Items.Add(GridView1.Rows(i).Cells(0).Text
Next
End Sub
but i don't have any idea to read the value of the RadioButton!!!
My be i'm confusing with asp (not aspx) but in aspx i don't know what i must
to do :-(
I'm using vb 2008. Thank's