Basic Date Picker Forums

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

Validation for Firefox doesn't work.

Last post 05-12-2006, 3:26 PM by geoffrey.mcgill. 1 replies.
Sort Posts: Previous Next
  •  01-27-2006, 6:26 AM 422

    Validation for Firefox doesn't work.

    Hi!

    First of all, thanks for a great control.

    However. I'm having some trouble with the validation, it works fine in IE but it doesn't work in Firefox browsers.
    I'm using ASP.net 2.0 and the following code:

    <BDP:BasicDatePicker id="date" runat="server"
        CustomDateFormat="yyyy-MM-dd"
        JavaScriptUrl="~/aspnet_client/basicframe_webcontrols_basicdatepicker/1_1_1959/basicdatepicker.js"
        StyleSheetUrl="~/aspnet_client/basicframe_webcontrols_basicdatepicker/1_1_1959/basicdatepicker.css"
        UpYearSelectorImageUrl="~/aspnet_client/basicframe_webcontrols_basicdatepicker/1_1_1959/arrow_up.gif"
        PrevMonthImageUrl="~/aspnet_client/basicframe_webcontrols_basicdatepicker/1_1_1959/arrow_left.gif"
        NextMonthImageUrl="~/aspnet_client/basicframe_webcontrols_basicdatepicker/1_1_1959/arrow_right.gif"
        DownYearSelectorImageUrl="~/aspnet_client/basicframe_webcontrols_basicdatepicker/1_1_1959/arrow_down.gif"
        ButtonImageUrl="~/aspnet_client/basicframe_webcontrols_basicdatepicker/1_1_1959/button.gif"
        Width="50px"></BDP:BasicDatePicker>
                   
    <BDP:RegularExpressionValidator id="startdateRegexVal"
        JavaScriptUrl="~/aspnet_client/basicframe_webcontrols_basicdatepicker/1_1_1959/Validation.js"
        ControlToValidate="date"
        ValidationGroup="upload"
        ErrorMessage="Date."
     ValidationExpression="^((((19|20)(([02468][048])|([13579][26]))-02-29))|((20[0-9][0-9])|(19[0-9][0-9]))-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))$"
        Display="Dynamic"
        runat="server">
        * yyyy-mm-dd
    </BDP:RegularExpressionValidator>

    Is there any way to fix this problem?

    Thanks!

  •  05-12-2006, 3:26 PM 512 in reply to 422

    Re: Validation for Firefox doesn't work.

    Hi fred,

    All the Validators (Microsoft or BDP which inherits from Microsoft) only work server side when viewed in FireFox. Within Internet Explorer the client-side validation should work.

    Hope this helps.


    Thanks,
    Geoffrey McGill
    ----------------------------------------
    Coolite Inc.
    Email: support [at] coolite [dot] com
    Phone: +1(888)775-5888
View as RSS news feed in XML
 
Powered by Community Server, by Telligent Systems