⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 default2.aspx.cs

📁 上海中商互联 六线主机空间
💻 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 + -