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

📄 sqltest.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 sqltest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!Page.IsPostBack)
        {
            this.LbShowTongBeing.Text = System.DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");

            this.LbShowTongEnd.Text = System.DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");

            this.LbShowToday.Text = System.DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");


        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        string BeginTime = this.SearchBeginTime.Text.ToString();
        string EndTime = this.SearchEndTime.Text.ToString();
        this.LbShowTongBeing.Text = BeginTime;
        this.LbShowTongEnd.Text = EndTime;

        this.SqlDataSource1.DataBind();
        this.GridView1.DataBind();

       this.SqlDataSource2.DataBind();
       this.GridView2.DataBind();

      this.SqlDataSource3.DataBind();
       this.GridView3.DataBind();

    this.SqlDataSource4.DataBind();
       this.GridView4.DataBind();
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -