Exemplo n.º 1
0
        protected void Lvw_transactions_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e)
        {
            DataPager dp = (DataPager)Lvw_transactions.FindControl("DataPager1");

            dp.SetPageProperties(e.StartRowIndex, e.MaximumRows, false);
            Lvw_transactions.DataSource = DBOps.UserTransactionsTable(((string)(Session["currUser"])));
            Lvw_transactions.DataBind();
        }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["currUser"] == null)
     {
         Response.Redirect("~/Home.aspx");
     }
     else
     {
         Lvw_transactions.DataSource = DBOps.UserTransactionsTable(((string)(Session["currUser"])));
         Lvw_transactions.DataBind();
     }
 }