#region Page_Load /// <summary> /// To load the page /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <returns></returns> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { curPage = 0; txtFromValueDate.Text = ""; txtToValueDate.Text = ""; txtFromValueDate.Text = Common.GetSearchFromDate().ToString("dd/MM/yyyy"); txtToValueDate.Text = Common.GetSearchToDate().ToString("dd/MM/yyyy"); //ViewState["DetailTable"] = grdOutward.DataSource; LoadOutwardGrid(curPage, 10, Convert.ToInt32(Session["SELECTED_DEPT"])); LoadInwardGrid(curPage, 10, Convert.ToInt32(Session["SELECTED_DEPT"])); } else { if (Session["DEPT_CHANGED"] == "1") { curPage = 0; } if (grdOutward.Items.Count > 0) { for (int i = 0; i < grdOutward.Items.Count; i++) { CheckBox chk = new CheckBox(); chk = (CheckBox)grdOutward.Items[i].Cells[6].FindControl("lblChkSelect"); if (chk == null) { LoadOutwardGrid(0, 10, Convert.ToInt32(Session["SELECTED_DEPT"])); } } } LoadInwardGrid(0, 10, Convert.ToInt32(Session["SELECTED_DEPT"])); } } #endregion
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)