I'm try to using validation InputFormRegularExpressionValidator. Code behind

<SharePoint:InputFormTextBox runat="server" id="TitleTB"__designer:bind="ddwrt:DataBind('i',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>
<SharePoint:InputFormRegularExpressionValidator ID="Validator" runat="server"
                         Display="Dynamic" SetFocusOnError="true"
                         ControlToValidate="TitleTB"
                         ValidationExpression="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]$"
                         ErrorMessage="Enter a valid email address." />

Validation is always fired regardless of the input.

link|improve this question

Since you found the answer, do you mind if we delete this question? – Kit Menke Jul 28 '11 at 13:58
i think it question be helpfull to other developers – IAfanasov Aug 4 '11 at 11:39
Oh, I agree it is helpful. I was just asking because you have it duplicated in two places (here and msdn forums). Would you want to post the answer here as well? – Kit Menke Aug 4 '11 at 14:05
feedback

1 Answer

up vote 1 down vote accepted

it was problem with regex. The right is ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]$ thank to Wayne Fan

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.