protected void GVVAC_RowUpdating(object sender, GridViewUpdateEventArgs e) { DataTable dt = new DataTable(); int st = Convert.ToInt32(GVVAC.DataKeys[e.RowIndex].Values[0].ToString()); TextBox txtage1 = (TextBox)GVVAC.Rows[e.RowIndex].FindControl("txtage"); TextBox txtvaccinename1 = (TextBox)GVVAC.Rows[e.RowIndex].Cells[3].Controls[1]; TextBox txtadmin1 = (TextBox)GVVAC.Rows[e.RowIndex].Cells[4].Controls[1]; TextBox txtdose1 = (TextBox)GVVAC.Rows[e.RowIndex].Cells[5].Controls[1]; breederdailypl.Age = Convert.ToInt32(txtage1.Text.ToString()); breederdailypl.vaccine = txtvaccinename1.Text.ToString(); breederdailypl.admin = txtadmin1.Text.ToString(); breederdailypl.dose = txtdose1.Text.ToString(); breederdailypl.Snum = st; dt = breederdailybal.updatevaccine(breederdailypl); //chkHatchdetails = objhatcheryBAL.updateHatchMasterdet(objhatcheryPL); ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "UpdateDetails", "alert('Update Successful');", true); GVVAC.EditIndex = -1; grid(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)