コード例 #1
0
        protected void txtHalamanLookup_TextChanged(object sender, EventArgs e)
        {
            GridViewRow rowPager   = GvLookupPegawai.BottomPagerRow;
            TextBox     txtHalaman = (TextBox)(rowPager.Cells[0].FindControl("txtHalaman"));

            try
            {
                if (int.Parse(txtHalaman.Text) <= GvLookupPegawai.PageCount + 1 && int.Parse(txtHalaman.Text) > 0)
                {
                    GvLookupPegawai.PageIndex = (int.Parse(txtHalaman.Text)) - 1;
                    GvLookupPegawai.DataBind();
                }
            }
            catch (Exception)
            {
                txtHalaman.Text = (GvLookupPegawai.PageIndex + 1).ToString();
            }
        }
コード例 #2
0
 protected void btnLookupCari_Click(object sender, EventArgs e)
 {
     GvLookupPegawai.DataBind();
 }
コード例 #3
0
 protected void lnkFilterItem2_Click(object sender, EventArgs e)
 {
     Session["Triger"] = "txtNIP";
     GvLookupPegawai.DataBind();
     LookupMPE.Show();
 }
コード例 #4
0
 protected void lnkCol2FormView_Click(object sender, EventArgs e)
 {
     Session["Triger"] = "txtCol2FormView";
     GvLookupPegawai.DataBind();
     LookupMPE.Show();
 }
コード例 #5
0
 protected void lnkCol2Edit_Click(object sender, EventArgs e)
 {
     Session["Triger"] = "nipLama";
     GvLookupPegawai.DataBind();
     LookupMPE.Show();
 }