protected void GuardarSalida(object sender, EventArgs e) { ImageButton btnSave = ((ImageButton)sender); GridViewRow grdrow = (GridViewRow)((ImageButton)sender).NamingContainer; string Requ_Numero = GridView1.DataKeys[grdrow.RowIndex].Values["Requ_Numero"].ToString(); string Reqd_CodLinea = GridView1.DataKeys[grdrow.RowIndex].Values["Reqd_CodLinea"].ToString(); string Reqs_Correlativo = GridView1.DataKeys[grdrow.RowIndex].Values["Reqs_Correlativo"].ToString(); TextBox txtSalida = (TextBox)grdrow.FindControl("txtSalida"); BL_TBL_RequerimientoSubDetalle obj = new BL_TBL_RequerimientoSubDetalle(); DataTable dtResultado = new DataTable(); if (txtSalida.Text == string.Empty) { string cleanMessage = "Ingresar fecha de salida"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } else { if (IsDate(txtSalida.Text)) { dtResultado = obj.uspUPD_TBL_RequerimientoSubDetalle_FECHA_SALIDA(Requ_Numero, Reqd_CodLinea, Reqs_Correlativo, txtSalida.Text.Trim()); string cleanMessage = "Registro satisfactorio"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); filtros(); } else { string cleanMessage = "Error! verificar fecha de salida"; ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", "doAlert('" + cleanMessage + "');", true); } } }