SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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"
                         ErrorMessage="Enter a valid email address." />

Validation is always fired regardless of the input.

share|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
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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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