I am using two default page .first page using below validation controls. second page use normal design .
two button control place in master page.1st button click runtime redirect to default 1page and next button click redirect to 2nd default page.
that time cont move next page.reason 1st default page display validation error message .
at a same time how to move 1st to second page.23
Height="20px" style="margin-left: 0px" ToolTip="Checking the Name Popup" Width="130px" MaxLength="60"> SetFocusOnError="True"> | |
SetFocusOnError="True"> | ForeColor="Red" ErrorMessage="* Please enter a valid email address" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" SetFocusOnError="True"> |
Width="130px" MaxLength="12"> ForeColor="Red" SetFocusOnError="True"> | |
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Ankur JainRank #2,475 · 567 reputationPosted Apr 3, 2015, 3:36 AM EDT
use ValiditionGroup property on Validator like this :
ValidationGroup="AnyNameForAllValidators"
validationGroup must be same for all validator controls
ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtE"
ForeColor="Red" ErrorMessage="* Please enter a valid email address"
ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
SetFocusOnError="True">
then on which button control you want to validate assign same property on that button also like this :
venky n115 reputationPosted Apr 3, 2015, 8:44 PM EDT