protected void btngetRec_Click(object sender, EventArgs e) { BindGvDetail(); if (GrdSpecdetails.Rows.Count > 0) { GrdSpecdetails.Focus(); btnSave.Visible = true; Panel2.Visible = true; } else { GrdSpecdetails.Focus(); btnSave.Visible = true; Panel2.Visible = true; MessageBox("Record Not Available"); } }
//#region Get //protected void btnget_Click(object sender, EventArgs e) //{ // BindGvDetail(); // btnSave.Visible = true; // Panel2.Visible = true; // Panel3.Visible = false; //} //#endregion #endregion #region Methods #region Binddata method public void BindGvDetail() { GrdSpecdetails.DataSource = SpecimanDetails.GetSpecimenDatilsByEmpCode(DDLSalesman.SelectedItem.Value.ToString(), "rtbk"); GrdSpecdetails.DataBind(); }