Exemplo n.º 1
0
        private void CargarComunasNotaria(string idRegion)
        {
            DataTable table = null;

            table = Consulta.BuscaComunasNotaria(idRegion);
            if (table.Rows.Count > 0)
            {
                this.comunanotaria.DataTextField  = "descripcion";
                this.comunanotaria.DataValueField = "id_comuna_notaria";
                this.comunanotaria.DataSource     = table;
                this.comunanotaria.DataBind();
            }
            else
            {
                this.comunanotaria.Items.Clear();
                this.notaria.Items.Clear();
            }
        }