Ejemplo n.º 1
0
        private void CargaGrilla()
        {
            DataTable table = ConsultasEspecificas.ConsultaGeneralBieneRaices(this.txtRut.Text, this.txtNroOperacion.Text, this.ddlCliente.SelectedValue, this.ddlTribunal.SelectedValue);

            if (table.Rows.Count > 0)
            {
                this.Session["snomdeudor"] = table.Rows[0]["nomdeudor"].ToString();
                this.Session["srutdeudor"] = table.Rows[0]["rut_deudor"].ToString();
                lab_Total_Registros.Text   = table.Rows.Count.ToString();
                this.Grilla.DataSource     = table;
                this.Grilla.DataBind();
                this.Session["ReporteExcelConsultaGeneralBieneRaices"] = Grilla.DataSource;
            }
            else
            {
                this.Page.RegisterClientScriptBlock("Mensaje", "<script>alert('No hay registros por los datos consultados');</script>");
            }
        }