Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Custom Validator on WebDateTimeEdit
posted

Hi,

I have a check box and WebDateTimeEdit controls in a form. When the user check the checkbox, I need to make sure the WebDateTimeEdit has a date value (and pass this value to a stored procedure). When the user unselects the check box, I need to pass a NULL value to the stored procedure.

I tried to implement this using custom validator, but its not firing when I have the property  Nullable="true". When I change  Nullable="false", the custom validator fires, but there will always be a default date value, even when I try to remove it.

Here is my control code:

<igtxt:WebDateTimeEdit ID="WebDateTimeEditControl" Width="80" DataMode="DateOrDBNull" Value ='<%# Bind("DateControlValue") %>'  runat="server" Nullable="true" NullText=""></igtxt:WebDateTimeEdit>

Any help on this would be appreciated.

Regards,

SK

Parents
No Data
Reply Children
No Data