protected void ConsultarIdentif(object sender, EventArgs e) { try { tercero.identificacion = Validar.validarlleno(identif_.Value); tercliente = Validar.Consulta(tercero.ConsultarTerceroAvanzado(tercero)); consultacliente.DataSource = tercliente; consultacliente.DataBind(); Alerta.Visible = false; allfactura.DataSource = null; allfactura.DataBind(); GridViewpagos.DataSource = null; GridViewpagos.DataBind(); cargosadicionales.DataSource = null; cargosadicionales.DataBind(); GridView1.DataSource = null; GridView1.DataBind(); Labelidincidencia.Text = null; consultacontrato.Dispose(); ClientScript.RegisterStartupScript(GetType(), "alerta", "panelbutton();", true); } catch (Exception ex) { textError.InnerHtml = ex.Message; Alerta.CssClass = "alert alert-error"; Alerta.Visible = true; } }
protected void ConsultarIdentif(object sender, EventArgs e) { try { tercero.identificacion = Validar.validarlleno(identif_.Value); tercliente = Validar.Consulta(tercero.ConsultarTerceroAvanzado(tercero)); consultacliente.DataSource = tercliente; consultacliente.DataBind(); Alerta.Visible = false; ClientScript.RegisterStartupScript(GetType(), "alerta", "panelbutton();", true); } catch (Exception ex) { textError.InnerHtml = ex.Message; Alerta.CssClass = "alert alert-error"; Alerta.Visible = true; } }