Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get value of radio in datalist?
    primarykey
    data
    text
    <p>I have a data list like this : </p> <pre><code>&lt;asp:DataList ID="DataList1" runat="server" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" GridLines="Both" RepeatColumns="3" onitemdatabound="DataList1_ItemDataBound"&gt; &lt;FooterStyle BackColor="#FFFFCC" ForeColor="#330099" /&gt; &lt;HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" /&gt; &lt;ItemStyle BackColor="White" ForeColor="#330099" /&gt; &lt;ItemTemplate&gt; &lt;table&gt; &lt;tr&gt; &lt;td style="width:10px"&gt; &lt;asp:RadioButton ID="rd_CS" runat="server" GroupName="Casi" oncheckedchanged="rd_CS_CheckedChanged" Text='&lt;%# Eval("Key")%&gt;'&gt;&lt;/asp:RadioButton&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:Image ID="Img_Nhacsi" runat="server" ImageUrl='&lt;%#Eval("Hinhanh")%&gt;' Width="75px" Height="75px" BorderColor="#66FF33" /&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:Label ID="lbl_Ten" runat="server" Text='&lt;%#Eval("Name")%&gt;'&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:Label ID="lbl_Ngaysinh" runat="server" Text='&lt;%#Eval("Birthdate")%&gt;'&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:Label ID="Label2" runat="server" Text='&lt;%#Eval("Country")%&gt;'&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/ItemTemplate&gt; &lt;SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" /&gt; &lt;/asp:DataList&gt; </code></pre> <p>I got a button submit in page. How to get the text of checked radio button when i click submit button ? Any help would be great.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload