单选按钮组的语法 [英] syntax for the radio button group

查看:110
本文介绍了单选按钮组的语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要单选按钮组的语法.

I need syntax for the Radio button group.

推荐答案

<table border="0" cellpadding="0" cellspacing="0" id="FieldRadioButtons" runat="server">
                                   <tr>
                                       <td colspan="2" class="padding12px">
                                           <asp:RadioButton ID="radField" GroupName="FieldsOrButtons" runat="server" Checked="true"

                                               AutoPostBack="true" OnCheckedChanged="radField_CheckedChanged" />
                                           <asp:RadioButton ID="radButton" GroupName="FieldsOrButtons" runat="server" AutoPostBack="true"

                                               OnCheckedChanged="radButton_CheckedChanged" />
                                       </td>
                                   </tr>
                                   <tr>
                                       <td colspan="2" class="padding12px">
                                           <asp:RadioButton ID="radScreenSpecific" runat="server" GroupName="ScreenSpecificOrChooseFrom"

                                               Checked="true" AutoPostBack="true" OnCheckedChanged="radScreenSpecific_CheckedChanged" />
                                           <asp:RadioButton ID="radCommonFields" runat="server" GroupName="ScreenSpecificOrChooseFrom"

                                               AutoPostBack="true" OnCheckedChanged="radCommonFields_CheckedChanged" />
                                           <asp:RadioButton ID="radCustomControl" runat="server" GroupName="ScreenSpecificOrChooseFrom"

                                               AutoPostBack="true" OnCheckedChanged="radCustomControl_CheckedChanged" />
                                       </td>
                                   </tr>
                               </table>


看看下面的链接..
你会知道的...

如何对RadioButton进行分组 [ http://www.w3schools.com/aspnet/control_radiobutton.asp [
take a look on below links..
you will get idea...

How to group RadioButtons[^]
http://www.w3schools.com/aspnet/control_radiobutton.asp[^]


这篇关于单选按钮组的语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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