Exemplo n.º 1
0
    protected void Confirm_Click(object sender, EventArgs e)
    {
        MembershipUser     user = Membership.GetUser();
        SQLDatabaseManager db   = new SQLDatabaseManager();

        String where = String.Format("IDServico='{0}'", DropDownList1.SelectedValue);
        db.Delete("Servico", where);

        Response.Redirect("~/Clients/VerServico.aspx");
    }