在asp.Net中使用RadioButton [英] using of RadioButton in asp.Net

查看:48
本文介绍了在asp.Net中使用RadioButton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


                            yes                     No
Offer & Acceptance Letter    [rbtnOfferYes]  [rbtnOfferNo]  
      Not 
[rbtnOfferNot]



我以这种方式使用单选按钮,因此名称太多,需要在其中选择一个.请帮助我进行编码.我提供了一个单选按钮的设计页面,其余与该单选按钮相同.



i used the radiobuttons in this way like this there are so many names and i need to check one among those.please help me in coding.i am providing design page og one radiobutton and the remaining are same as that.

<tr>
                       <td align="center">
                       <asp:Label ID="Label2" runat="server" CssClass="titles"

                                   Text="Welcome Kit" ></asp:Label></td>
                       <td align="center" >
                        <asp:Label ID="lblYes" runat="server" Text="Yes" CssClass="title_bold"></asp:Label>
                       </td>
                       <td align="center">
                           <asp:Label ID="lblNo" runat="server" Text="No" CssClass="title_bold" ></asp:Label>
                       </td>
                       <td align="center">
                           <asp:Label ID="lblNot" runat="server" Text="Not Applicable" CssClass="title_bold" ></asp:Label>
                       </td>
                   </tr>
                           <caption>
                               &nbsp;
                                   <tr>
                                   <td class="titles2">
                                       <asp:Label ID="lblOffer" runat="server" Text=" Offer &amp; Acceptance Letter "></asp:Label></td>
                                       <%--<asp:Label ID="Label3" Text="*" runat="server" ForeColor="Red"></asp:Label>--%>

                                   <td align="center">
                                       &nbsp;
                                       <asp:RadioButton ID="rbtnOfferYes" runat="server" />
                                   </td>
                                   <td align="center">
                                       &nbsp;
                                       <asp:RadioButton ID="rbtnOfferNo" runat="server" />
                                   </td>
                                   <td align="center">
                                       &nbsp;
                                       <asp:RadioButton ID="rbtnOfferNot" runat="server" />
                                   </td>
                               </tr>







thanks in advance.

推荐答案

您需要创建一个GroupRadioButton,如 ^ ]
You need to create a GroupRadioButton as shown here[^]


这篇关于在asp.Net中使用RadioButton的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆