예제 #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");
        }
예제 #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);
        }
예제 #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");
        }
예제 #4
0
 partial void DeleteRESIDENCIAL(RESIDENCIAL instance);
예제 #5
0
 partial void UpdateRESIDENCIAL(RESIDENCIAL instance);
예제 #6
0
 partial void InsertRESIDENCIAL(RESIDENCIAL instance);