29 lines
804 B
C#
Raw Permalink Normal View History

2015-05-19 14:45:47 +08:00
using System;
using System.Collections.Generic;
using FineUI;
namespace DotNetOA.Web.task
{
public partial class start : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack) {
CheckBoxList1.Items.Add("Text1", "Value1");
CheckBoxList1.Items.Add("Text2", "Value2");
CheckBoxList1.Items.Add("Text3", "Value3");
CheckBoxList1.Items.Add("Text4", "Value4");
CheckBoxList1.Items.Add("Text5", "Value5");
}
}
protected void btn_Submit_Click(object sender, EventArgs e)
{
Button1.Text = CheckBoxList1.SelectedValueArray.Length.ToString();
}
}
2013-11-01 14:13:51 +08:00
}