正在加载图片...
■21.5选择控件 ■选择控件的作用是让用户从可选项中选取一个或多个选项 包括 Radiobutton和 RadioButton list控件、 CheckBox和 checklist控件、 Listbox和 DropDownlist控件 1. Radio button和 Radiobuttonlist控件 ■单选按钮Web服务器控件分为两类: RadioButton控件和 RadioButtonlist控件。可以使用这些控件定义任意数目的 带标签的单选按钮,并将它们水平或垂直排列。 (1) RadioButton控件 语法格式如下 <asp: Radio Button ID=Radio runat="server Groupname="组名 Text="控件旁显示的文字 oncheckedchanged=Radio Button1_ Checked Changed />◼ 2.1.5 选择控件 ◼ 选择控件的作用是让用户从可选项中选取一个或多个选项 ,包括RadioButton和RadioButtonList控件、CheckBox和 CheckList控件、ListBox和DropDownList控件。 ◼ 1.RadioButton和RadioButtonList控件 ◼ 单选按钮Web服务器控件分为两类:RadioButton控件和 RadioButtonList控件。可以使用这些控件定义任意数目的 带标签的单选按钮,并将它们水平或垂直排列。 ◼ (1)RadioButton控件 ◼ 语法格式如下: ◼ <asp:RadioButton ID="RadioButton1" runat="server" GroupName="组名" ◼ Text="控件旁显示的文字" oncheckedchanged="RadioButton1_CheckedChanged" … />
向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有