Example #1
0
        protected void GridViewFindPatrol_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            DataSet ds = (DataSet)Cache["CacheForPatrolNumberList"];

            GridViewFindPatrol.PageIndex  = e.NewPageIndex;
            GridViewFindPatrol.DataSource = ds;
            GridViewFindPatrol.DataBind();
        }
Example #2
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            // Get Serial No Grid View Details
            DataSet ds = _DBObj.GetPatrolNumberFromProdOrderNo(txtProdOrderNo.Text.Trim(), Convert.ToString(ddlLocation.SelectedValue));

            Cache["CacheForPatrolNumberList"] = ds;

            GridViewFindPatrol.DataSource = ds;
            GridViewFindPatrol.DataBind();
        }