Basic Date Picker Forums

Welcome to Basic Date Picker Forums Sign in | Join | Help
in Search

Validation for BDPLite?

Last post 05-24-2006, 3:32 PM by isteve. 8 replies.
Sort Posts: Previous Next
  •  05-24-2006, 10:54 AM 532

    Validation for BDPLite?

    Any ideas for date validation on the BDPLite?  I was looking to do something on the lost focus event?  Would the Microsoft validation controls work for this?
  •  05-24-2006, 11:42 AM 533 in reply to 532

    Re: Validation for BDPLite?

    Hi isteve,

    The date pickers ship with five Validator controls.

    1. Compare Validator
    2. Difference Validator
    3. IsDate Validator
    4. Range Validator
    5. Required Field Validator

    The Microsoft Validation controls will not work with the date pickers. This is because the Microsoft Validators do not deal properly with DateTime objects server-side. Since the date pickers pass around DateTime objects exclusively, we had to extend the Microsoft Validators for this requirement.

    If you have not already done so, we would highly recommend upgrading to the v1.2 release of the controls. You can find download information at the following location. See http://forums.basicdatepicker.com/forums/505/ShowPost.aspx

    If you are using the full version date picker (BasicDatePicker) you might want to investigate the OnClientAfterSelectionChanged Event that fires client-side when the date is changed.

    Hope this helps.


    Thanks,
    Geoffrey McGill
    ----------------------------------------
    Coolite Inc.
    Email: support [at] coolite [dot] com
    Phone: +1(888)775-5888
  •  05-24-2006, 11:44 AM 534 in reply to 533

    Re: Validation for BDPLite?

    I have already installed the 1.2 version, but I still see the old validators under Basic Forms?  Do I need to uninstall the pervious version first?
  •  05-24-2006, 11:56 AM 536 in reply to 534

    Re: Validation for BDPLite?

    Hi isteve,

    Delete all the old date picker and related icons from your Visual Studio .NET ToolBox and then re-add the new v1.2 icons. The following forum post details how to add the icons to the ToolBox. See http://forums.basicdatepicker.com/forums/133/ShowPost.aspx

    We apologize that the installer does not do this automatically. Installing object into the VS.NET Toolbox has been a pain for us and we're hoping to come with a more reliable solution shortly.

    Please let us know if you have any further questions or comments.


    Thanks,
    Geoffrey McGill
    ----------------------------------------
    Coolite Inc.
    Email: support [at] coolite [dot] com
    Phone: +1(888)775-5888
  •  05-24-2006, 12:10 PM 538 in reply to 536

    Re: Validation for BDPLite?

    Thanks, I was able to get that working...Now back to my original question, if I am using the BDPLite, what can I use for Date Validation?  The IsDate is for the Basic Date Picker only, right?  It will not let me drag that validator onto the page.
  •  05-24-2006, 12:27 PM 539 in reply to 538

    Re: Validation for BDPLite?

    Hi isteve,

    Good to hear you got the components working.

    All the Validators work with both BasicDatePicker and BDPLite. You might have some remnants of the previous version still on your page, so to test that everything is working correctly, try creating a new page and drop on an BDPLite and IsDateValidator control.

    If the new page works, look for the following tag (or similar) on your original webform and replace with the following. See

    <%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls" TagPrefix="BDP" %>

    Sometimes restarting VS.NET cleans things out.

    Hope this helps.


    Thanks,
    Geoffrey McGill
    ----------------------------------------
    Coolite Inc.
    Email: support [at] coolite [dot] com
    Phone: +1(888)775-5888
  •  05-24-2006, 12:31 PM 540 in reply to 538

    Re: Validation for BDPLite?

    Hi isteve,

    I forgot to mention that once you have the Validator on the page, you must set the "ControlToValidate" property. Within VS.NET, select the Validator control, open the properties panel and find the "ControlToValidate" property. The dropdownlist should list all the BDPLite and BasicDatePicker controls on the page.

    Hope this helps.


    Thanks,
    Geoffrey McGill
    ----------------------------------------
    Coolite Inc.
    Email: support [at] coolite [dot] com
    Phone: +1(888)775-5888
  •  05-24-2006, 2:40 PM 541 in reply to 540

    Re: Validation for BDPLite?

    Alright, I uninstalled everything, reinstalled version 1.2.  But when I go to drag the control onto a page, whether its a new page, new project...whatever, I get the circle with the slash through it?  Not sure where to go from here? 
  •  05-24-2006, 3:32 PM 542 in reply to 541

    Re: Validation for BDPLite?

    Nevermind again, I was able to work it out.  I had to reset my reference to the new version.  Thanks!
View as RSS news feed in XML
 
Powered by Community Server, by Telligent Systems