Example #1
0
 private void Page_Load(object sender, System.EventArgs e)
 {
     // 06/09/2006 Paul.  Always set the message as this control does not remember its state.
     reqDATE.ErrorMessage = L10n.Term(".ERR_REQUIRED_FIELD");
     // 08/31/2006 Paul.  Need to bind the text.
     valDATE.ErrorMessage = L10n.Term(".ERR_INVALID_DATE");
     valTIME.ErrorMessage = L10n.Term(".ERR_INVALID_TIME");
     if (!Page.IsPostBack)
     {
         DateTime dt1100PM = DateTime.Today.AddHours(23);
         lblDATEFORMAT.Text = "(" + Session["USER_SETTINGS/DATEFORMAT"] + ")";
         lblTIMEFORMAT.Text = "(" + dt1100PM.ToShortTimeString() + ")";
         SetDate();
         //this.DataBind();
         // 07/02/2006 Paul.  The image needs to be manually bound in Contracts.
         imgCalendar.DataBind();
     }
 }
 private void Page_Load(object sender, System.EventArgs e)
 {
     // 06/09/2006 Paul.  Always set the message as this control does not remember its state.
     reqDATE.ErrorMessage = L10n.Term(".ERR_REQUIRED_FIELD");
     // 08/31/2006 Paul.  Need to bind the text.
     valDATE.ErrorMessage = L10n.Term(".ERR_INVALID_DATE");
     if (!IsPostBack)
     {
         // 06/29/2006 Paul.  The image needs to be manually bound in Administration/ProductTemplates/EditView.ascx
         imgCalendar.DataBind();
         // 07/05/2006 Paul.  Need to bind the label manually.
         // 07/06/2005 Paul.  lblDateFormat is not defined in ChartDatePicker, so we must test if lblDateFormat exists.
         if (lblDateFormat != null)
         {
             lblDateFormat.DataBind();
         }
         //this.DataBind();
     }
 }