Reputation: 29
I have the following validation controls:
<asp:RequiredFieldValidator ID="GebeurtenisTekstRequiredValidator" ControlToValidate="GebeurtenisTekst" Display="Dynamic" runat="server" ErrorMessage="Er is geen gebeurtenis.<br />" />
<asp:RegularExpressionValidator ID="GebeurtenisTekstMaxLength" runat="server" Display="Dynamic" ControlToValidate="GebeurtenisTekst" ValidationExpression="^[\s\S]{1,500}$" errormessage="- Maximaal 500 karakters.<br />" />
The validation control:
<SharePoint:InputFormTextBox RichText="false" ID="GebeurtenisTekst" runat="server" Rows="4" Columns="60" MaxLength="500" TextMode="MultiLine"></SharePoint:InputFormTextBox>
In Internet Explorer (9) i don't get a message when i paste more then 500 characters. In chrome I receive the validationmessage: "Maximaal 500 karakters". Is this a IE issue and how can i fix it? Thanks.
Upvotes: 0
Views: 1021
Reputation: 5801
It is an Ie 9 issue, i've been in the same situation, it seems ie9 does not have all the data-val-* html 5 tags implemented, that's why in other browsers its possible. Rest assured your coding is correct.
Upvotes: 2