Ejemplo n.º 1
0
    protected void btnDelete_click(object sender, EventArgs e)
    {
        string results = myBusinessLayer.DeleteUser(Session["username"].ToString());

        //set feedback
        lblUserFeedback.Text = results;
    }
Ejemplo n.º 2
0
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        objLogic = new clsBusinessLayer();
        int index  = e.RowIndex;
        int UserId = Convert.ToInt32(GridView1.Rows[index].Cells[5].Text);

        objLogic.DeleteUser(UserId);
        Response.Redirect("passenger.aspx");
    }
Ejemplo n.º 3
0
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        // Remove data from results
        string results = myBusinessLayer.DeleteCustomer(Convert.ToInt32(customerID.Text));

        // Remove data to results
        myBusinessLayer.DeleteUser(Convert.ToInt32(IDforUserID.Text));

        // Calle updateForm method
        updateForm(results);
    }
    //delete user event
    protected void btnDeleteUser_Click(object sender, EventArgs e)
    {
        string results = myBusinessLayer.DeleteUser(Convert.ToInt32(customerID.Text));

        updateForm(results);
    }