protected void Page_Load(object sender, EventArgs e) { try { if (Request.QueryString["aHtI"] != null) { if (!Page.IsPostBack) { ViewState["BTNCLICK"] = false; SetParamValue(); objRoutingMasterHistory.BindHistoryGrid(gvComm, "", lblRowCount); ViewState["Column"] = "SC_Name"; ViewState["Order"] = "ASC"; } System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"])); } } catch (Exception ex) { } }
protected void Page_Load(object sender, EventArgs e) { try { if (!Page.IsPostBack) { objRoutingMasterHistory.DateFrom = txtFrom.Text = (new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1)).ToShortDateString(); objRoutingMasterHistory.DateTo = txtTo.Text = DateTime.Today.ToShortDateString(); ViewState["BTNCLICK"] = false; SetParamValue(); objRoutingMasterHistory.BindHistoryGrid(gvComm, "", lblRowCount); ViewState["Column"] = "SC_Name"; ViewState["Order"] = "ASC"; } System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"])); DefaultButton(ref txtSearch, ref imgBtnGo); } catch (Exception ex) { } }