Пример #1
0
 protected void btnRunReport_Click(object sender, System.EventArgs e)
 {
     if (WebTool.ValidateHistoricDateControl(this.lstFromDay, this.lstFromMonth, this.lstFromYear) ||
         WebTool.ValidateDateControl(this.lstToDay, this.lstToMonth, this.lstToYear))
     {
         this.plhSearchCriteria.Visible = false;
         this.plhReportResults.Visible  = true;
         this.plhTitle.Visible          = false;
         this.lblError.Visible          = false;
         this.ShowReport();
     }
     else
     {
         this.plhSearchCriteria.Visible = true;
         this.plhReportResults.Visible  = false;
         this.plhTitle.Visible          = true;
         this.lblError.Text             = ResourceManager.GetString("lblError.Date");  //"The date must be valid and from date cannot be greater than today";
         this.lblError.Visible          = true;
     }
 }