?? default2.aspx.cs
字號:
?using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
{
}
protected void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
{
int n = CheckBoxList1.Items.Count;
for (int i = 0; i < n; i++)
{
if (CheckBoxList1.Items[i].Selected)
{
string txt = CheckBoxList1.Items[i].Text;
string t = txt.Replace("請投我一票吧","<br>");
Response.Write(t);
}
}
}
protected void CheckBoxList1_DataBound(object sender, EventArgs e)
{
int n = CheckBoxList1.Items.Count;
for (int i = 0; i < n; i++)
{
CheckBoxList1.Items[i].Text = CheckBoxList1.Items[i].Text;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
if (CheckBoxList1.RepeatDirection == RepeatDirection.Vertical)
{
Button1.Text = "直列";
CheckBoxList1.RepeatDirection = RepeatDirection.Horizontal;
}
else
{
Button1.Text = "水平";
CheckBoxList1.RepeatDirection = RepeatDirection.Vertical;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -