예제 #1
0
        void BindData()
        {
            ClassTimeContact tc = new ClassTimeContact();
            DataTable        dt = tc.GetTimeContact("", "");

            GridView1.DataSource = dt;
            GridView1.DataBind();
            SetViewState(dt);
        }
예제 #2
0
        void BindData1()
        {
            ClassTimeContact tc = new ClassTimeContact();
            DataTable        dt = tc.GetTimeContact(txtSearchTimeContactID.Text, txtSearchTimeContactName.Text);

            GridView1.DataSource = dt;
            GridView1.DataBind();
            SetViewState(dt);
        }
예제 #3
0
        protected void btnSearchRefresh_Click(object sender, EventArgs e)
        {
            ClearData();
            ClassTimeContact tc = new ClassTimeContact();
            DataTable        dt = tc.GetTimeContact("", "");

            GridView1.DataSource = dt;
            GridView1.DataBind();
            SetViewState(dt);
        }