Exemplo n.º 1
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            RESIDENCIAL r = getSelectedItemfromButtom(sender);

            ctrl.EliminarResidencial(r);
            ClientScript.RegisterStartupScript(GetType(), "myalert", "alert('Elemento eliminado: Residencial #" + r.ID + "');", true);
            Response.Redirect("Residenciales.aspx");
        }
Exemplo n.º 2
0
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            RESIDENCIAL r = getSelectedItemfromButtom(sender);

            txtIdResidencial.ReadOnly    = true;
            txtIdResidencial.Text        = r.ID;
            txtNombreResidencial.Text    = r.NOMBRE;
            txtDireccionResidencial.Text = r.DIRECCION;
            ScriptManager.RegisterStartupScript(this, GetType(), "Pop", "$('#popupResidencial').modal('show');", true);
        }
Exemplo n.º 3
0
        protected void btnResidencial_Click(object sender, EventArgs e)
        {
            RESIDENCIAL obj = new RESIDENCIAL()
            {
                ID        = txtIdResidencial.Text,
                NOMBRE    = txtNombreResidencial.Text,
                DIRECCION = txtDireccionResidencial.Text
            };

            ctrl.RegistrarResidencial(obj);
            Response.Redirect("Residenciales.aspx");
        }
Exemplo n.º 4
0
 partial void DeleteRESIDENCIAL(RESIDENCIAL instance);
Exemplo n.º 5
0
 partial void UpdateRESIDENCIAL(RESIDENCIAL instance);
Exemplo n.º 6
0
 partial void InsertRESIDENCIAL(RESIDENCIAL instance);