Ejemplo n.º 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();
            }
        }
Ejemplo n.º 2
0
 protected void btnLookupCari_Click(object sender, EventArgs e)
 {
     GvLookupPegawai.DataBind();
 }
Ejemplo n.º 3
0
 protected void lnkFilterItem2_Click(object sender, EventArgs e)
 {
     Session["Triger"] = "txtNIP";
     GvLookupPegawai.DataBind();
     LookupMPE.Show();
 }
Ejemplo n.º 4
0
 protected void lnkCol2FormView_Click(object sender, EventArgs e)
 {
     Session["Triger"] = "txtCol2FormView";
     GvLookupPegawai.DataBind();
     LookupMPE.Show();
 }
 protected void lnkCol2Edit_Click(object sender, EventArgs e)
 {
     Session["Triger"] = "nipLama";
     GvLookupPegawai.DataBind();
     LookupMPE.Show();
 }