单选按钮组的语法

单选按钮组的语法

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

问题描述

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

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>



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

08-19 12:25