protected void Page_Load(object sender, EventArgs e)
    {
        objServicecontractorHistory.DateFrom = txtFrom.Text = (new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1)).ToShortDateString();
        objServicecontractorHistory.DateTo   = txtTo.Text = DateTime.Today.ToShortDateString();
        objServicecontractorHistory.Empcode  = Membership.GetUser().UserName.ToString();
        if (!Page.IsPostBack)
        {
            SetParamValue();
            objServicecontractorHistory.BindHistoryGrid(gvServiceContractor, "", lblRowCount);


            ViewState["Column"] = "SC_UserName";
            ViewState["Order"]  = "ASC";
        }
        System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
    }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Request.QueryString["aHtI"] != null)
         {
             if (!Page.IsPostBack)
             {
                 ViewState["BTNCLICK"] = false;
                 SetParamValue();
                 objSCMasterHistory.BindHistoryGrid(gvComm, "", lblRowCount);
                 ViewState["Column"] = "SC_Name";
                 ViewState["Order"]  = "ASC";
             }
             System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
         }
     }
     catch (Exception ex)
     {
     }
 }