Beispiel #1
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        Gift gift = new Gift();

        gift.GiftID   = int.Parse(Request.QueryString["ID"].ToString());
        gift.GiftName = txtGiftName.Text;
        bool resutl = GiftManager.UpdateGift(gift);

        Response.Redirect("AdminDisplayGift.aspx");
    }