Esempio n. 1
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");
        }
    }
Esempio n. 2
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");
        }
    }