Esempio n. 1
0
    protected void btnDonateSubmit_Click(object sender, EventArgs e)
    {
        int    pk = (int)Session["person"];
        People p  = new People();

        p.personKey = pk;
        p.Donation  = txtMakeDonation.Text;
        ManagePeople mp = new ManagePeople();

        try
        {
            mp.MakeDonation(p);
            Response.Redirect("Donations.aspx");
        }
        catch (Exception ex)
        {
            lblError.Text = ex.Message;
        }
    }
    protected void btnDonateSubmit_Click(object sender, EventArgs e)
    {
        int pk = (int)Session["person"];
        People p = new People();
        p.personKey = pk;
        p.Donation = txtMakeDonation.Text;
        ManagePeople mp = new ManagePeople();

        try
        {
            mp.MakeDonation(p);
            Response.Redirect("Donations.aspx");

        }
        catch (Exception ex)
        {
            lblError.Text = ex.Message;
        }
    }