Exemplo n.º 1
0
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        Customer c = new Customer();
        c.Donation = txtDonation.Text;

        ManageDonation md = new ManageDonation(c);

            int pk = (int)Session["person"];
            md.WriteDonation(pk);
            Response.Redirect("Welcome.aspx");
    }
Exemplo n.º 2
0
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        Customer c = new Customer();

        c.Donation = txtDonation.Text;


        ManageDonation md = new ManageDonation(c);


        int pk = (int)Session["person"];

        md.WriteDonation(pk);
        Response.Redirect("Welcome.aspx");
    }
Exemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Personkey"] != null)
        {
            int            pk    = (int)Session["Personkey"];
            ManageDonation md    = new ManageDonation();
            DataTable      table = md.GetDonation(pk);
            foreach (DataRow row in table.Rows)
            {
                lblHello.Text = "Welcome " + row["PersonFirstName"].ToString() + " " + row["PersonLastName"].ToString();
            }

            gvDonation.DataSource = table;
            gvDonation.DataBind();
        }
        else
        {
            Response.Redirect("Default.aspx");
        }
    }
Exemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Personkey"] != null)
        {
            int pk = (int)Session["Personkey"];
            ManageDonation md = new ManageDonation();
            DataTable table = md.GetDonation(pk);
            foreach (DataRow row in table.Rows)
            {
                lblHello.Text = "Welcome " + row["PersonFirstName"].ToString() + " " + row["PersonLastName"].ToString();
            }

            gvDonation.DataSource = table;
            gvDonation.DataBind();

        }
        else
        {
            Response.Redirect("Default.aspx");
        }
    }