Datepicker - Required?

Nov 16, 2008 at 11:50 AM
When setting
[Editable("Aflevering op", typeof(DatePicker), "SelectedDate", 110)]
to
[Editable("Aflevering op", typeof(DatePicker), "SelectedDate", 110, Required = True)]

I get the error below when editing the page it is on.
Anybody with a solution or a trick to have a required date?

Control 'AfleverDatum' referenced by the ControlToValidate property of 'AfleverDatum_rfv' cannot be validated.




[Editable("Aflevering op", typeof(DatePicker), "SelectedDate", 110, ContainerName = "tabAlgemeen")]Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Control 'AfleverDatum' referenced by the ControlToValidate property of 'AfleverDatum_rfv' cannot be validated.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Control 'AfleverDatum' referenced by the ControlToValidate property of 'AfleverDatum_rfv' cannot be validated.]
   System.Web.UI.WebControls.BaseValidator.CheckControlValidationProperty(String name, String propertyName) +8730965
   System.Web.UI.WebControls.BaseValidator.ControlPropertiesValid() +40
   System.Web.UI.WebControls.BaseValidator.get_PropertiesValid() +21
   System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +27
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Coordinator
Nov 16, 2008 at 3:24 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.