Example #1
0
        private void BindData()
        {
            string sql = "select * from Transactions where (ActorId=300001)";

            LoadDB(sql, "Transactions", "TransactionID", 400000, 1);

            DataSet ds = (DataSet)Cache["DataSet"];

            GridViewWorkHistory.DataSource = ds.Tables["Transactions"];
            GridViewWorkHistory.DataBind();
        }
        private void BindData()
        {
            string sql = "select * from ChangeStatus where (ChangerId=2000)";

            LoadDB(sql, "ChangeStatus", "ChangeId", 400000, 1);

            DataSet ds = (DataSet)Cache["DataSet"];

            GridViewWorkHistory.DataSource = ds.Tables["ChangeStatus"];
            GridViewWorkHistory.DataBind();
        }