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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ankur JainPosted Apr 3, 2015, 7:36 AM
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 nPosted Apr 4, 2015, 12:44 AM