CSDN博客

img bgu

[我的ASP.net学习历程]CheckBoxList和RadioButtonList的数据梆定

发表于2004/9/21 19:43:00  819人阅读

分类: [My ASP/ASP.net(C#)]

<%@ Page Language="C#" AutoEventWireup="True" %>
<Script language="C#" runat="server">
void Page_Load(Object Sender,EventArgs e){
 ArrayList array=new ArrayList();
 array.Add("Windows");
 array.Add("Linux");
 array.Add("unix");
 CheckBox_1.DataSource=array;
 CheckBox_1.DataBind();
 RadioList_1.DataSource=array;
 RadioList_1.DataBind();
}
</Script>
<form id="Form_1" runat="server">
<asp:checkboxList ID="CheckBox_1" runat="server"/>
<input id="Button_1" type="Button" value="CheckButton" runat="server"/>
<asp:radiobuttonlist ID="RadioList_1" runat="server"/>
<input id="Button_2" type="Button" value="RadioButton" runat="server"/>
</form>
0 0

相关博文

我的热门文章

img
取 消
img