예제 #1
0
        protected void btnBuscar_Click(object sender, EventArgs e)
        {
            if (repClientes != null)
            {
                CN_CatCNac_Matriz cn_CNCliente = new CN_CatCNac_Matriz(model);
                Session["CNCliente"] = cn_CNCliente;

                this.repClientes.DataSource = cn_CNCliente.ConsultarItem(txtNombre.Text);
                this.repClientes.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            var permisos = new PermisosSesion(this.Page);

            permisos.ValidarSesion();


            if (!Page.IsPostBack)
            {
                if (Request.QueryString["Id"] != "undefined")
                {
                    //permisos.ValidarPermisos(this.rtb1);

                    int id = Int32.Parse(Request.QueryString["Id"]);

                    CN_CatCNac_Matriz negCliente = (CN_CatCNac_Matriz)Session["CNCliente"];
                    var cliente = negCliente.ConsultarItem(id);

                    object objCN_Cliente = cliente;
                    AsignacionCampos.AsignaCamposForma(ref objCN_Cliente, "", this);
                }
            }
        }