473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Validation controls are finicky

I don't know what the problem is. I have a form with several controls that
need to be validated, I put a validation group in every form control, every
validatoino control, the submit button and the validation summary control.
I want it to do client side validation so I set every validation control
display property to none and set the validation summary control to
ShowMessage to true and ShowSummary to false. Als form controls set
CausesValidation to true. I have a similar setup on a another form and it
works. I also have the following the OnClientClick attribute
"Page_ValidationActive=true;" (although I don't know why this is defaulting
to false in the page since I have EnableClientScript set to true in every
validation control and the validation summary control). I've icluded the
entire .aspx file below if you want to take a look at it.
--Buddy

<%@ Page language="c#" Inherits="AspDotNetStorefront.lat_signup"
CodeFile="lat_signup.aspx.cs" %>
<html>
<head>
</head>
<body>
<asp:Literal ID="JSPopupRoutines" runat="server"
Mode="PassThrough"></asp:Literal>
<table cellspacing="5" cellpadding="5" border="0" width="100%">
<tr>
<td valign="top" align="left">
<asp:Panel ID="pnlBeforeSignup" runat="server"
Visible="true">
<table cellspacing="0" cellpadding="0" width="171"
bgcolor="#AAAAAA" border="0">
<tr>
<td bgcolor="#AAAAAA">&nbsp;<asp:Label
ID="AppConfigAffiliateProgramName" runat="server" Font-Size="Smaller"
Font-Bold="true" ForeColor="white" BackColor="#AAAAAA"></asp:Label></td>
</tr>

<tr valign="middle" align="center">
<td>
<table cellspacing="0" cellpadding="4"
width="100%" bgcolor="#AAAAAA" border="0">
<tr>
<td valign="top"
bgcolor="#CCCCCC">
<center>
<a
href="lat_signin.aspx"><asp:Image ID="imgLogin" AlternateText="Affiliate
Login" runat="server" /></a>
</center>
</td>
</tr>
</table>
</td>
</tr>
</table>

<p>&nbsp;</p>

<table cellspacing="0" cellpadding="0" width="171"
bgcolor="#AAAAAA" border="0">
<tr>
<td bgcolor="#AAAAAA" height="18"><b
class="small" style="COLOR: #ffffff">&nbsp;Learn More</b></td>
</tr>
<tr valign="middle" align="center">
<td>
<table cellspacing="0" cellpadding="4"
width="100%" bgcolor="#AAAAAA" border="0">
<tr>
<td valign="top" align="left"
width="100%" bgcolor="#ffffff">Join our rapidly growing network of
<asp:Literal ID="AppConfigAffiliateProgramName2" runat="server"
Mode="PassThrough"></asp:Literal> <a href="t-affiliate.aspx">Read
more</a>.</td>
</tr>
</table>
</td>
</tr>
</table>

<p>&nbsp;</p>

<table cellspacing="0" cellpadding="0" width="171"
bgcolor="#AAAAAA" border="0">
<tr>
<td bgcolor="#AAAAAA" height="18"><b
style="color: #ffffff" class="small">&nbsp;Need Help?</b></td>
</tr>

<tr valign="middle" align="center">
<td>
<table cellspacing="0" cellpadding="4"
width="100%" bgcolor="#AAAAAA" border="0">
<tr>
<td valign="top" align="left"
width="100%" bgcolor="#ffffff">&bull; <a href="lat_signin.aspx">Forgot your
password?</a><br />
&bull; <a
href="lat_account.aspx">Your Account Page</a><br />
&bull; <a
href="t-affiliate_faq.aspx">FAQs</a><br />
&bull; <asp:HyperLink
ID="CustSvcEmailLink" runat="server" Text="Customer
Service"></asp:HyperLink></td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="pnlAfterSignup" runat="server"
Visible="false">
<table cellSpacing="0" cellPadding="1" width="171"
bgColor="#AAAAAA" border="0">
<tr>
<td bgcolor="#AAAAAA" height="18"><b
style="color: #ffffff" class="small">&nbsp;Program Links</b></td>
</tr>
<tr valign="middle" align="center">
<td>
<table cellSpacing="0" cellPadding="4"
width="100%" bgColor="#AAAAAA" border="0">
<tr>
<td vAlign="top" align="left"
width="100%" bgColor="#ffffff">
&bull; <a
href="lat_account.aspx">Account Home</a><br>
&bull; <a
href="lat_getlinking.aspx">Web Linking Instructions</a><br>
&bull; <a
href="lat_driver.aspx?topic=affiliate_faq">FAQs</a><br>
&bull; <asp:HyperLink
ID="lnkAskAQuestion" Text="Ask A Question"
runat="server"></asp:HyperLink><br>
&bull; <a
href="lat_driver.aspx?topic=affiliate_terms">Terms &amp; Conditions</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>

<br/><br/>
<asp:Label ID="lblErrorMsg" runat="server"
Font-Bold="true" ForeColor="red" ></asp:Label>

</td>

<td width="100%" align="left" valign="top">
<asp:Image ID="AffiliateHeader" runat="server"
AlternateText="" /><br /><br />
<asp:Panel ID="pnlSignupSuccess" runat="server"
Visible="false">
<asp:Label ID="lblSignupSuccess" runat="server"
Font-Bold="true"></asp:Label>
</asp:Panel>

<asp:Panel ID="pnlSignedInMsg" runat="server"
Visible="false">
You're already signed in...please <a
href="lat_signout.aspx">sign out</a> here
</asp:Panel>

<asp:Panel ID="pnlSignUpForm" runat="server"
Visible="false">

<p>
<b class="h1">Sign Up Below</b><br />
<span class="serif">Please complete the sign-up
form below. If you have a web site that you will be using to link to us,
please complete the additional fields. If you do not have a web site, just
ignore the additional fields.</span>
<br /><br />
</p>

<form id="Form1" runat="server">
<asp:Table ID="tblAccount" CellSpacing="0"
CellPadding="2" Width="100%" runat="server">
<asp:TableRow>
<asp:TableCell HorizontalAlign="left"
VerticalAlign="top">
<asp:Image ID="accountinfo_gif"
runat="server" AlternateText="" /><br />

<asp:Table ID="tblAcctInfoBox"
CellSpacing="0" CellPadding="4" Width="100%" runat="server">
<asp:TableRow>
<asp:TableCell
HorizontalAlign="left" VerticalAlign="top">
<table border="0"
cellpadding="0" cellspacing="2" width="100%">
<tr>
<td width="100%"
colspan="2"><asp:Label runat="server" ID="AppConfigAffiliateProgramName3"
Font-Bold="true"></asp:Label></td>
</tr>

<tr>
<td width="100%"
colspan="2">
<hr />
</td>
</tr>

<tr>
<td
width="30%">*Your First Name:</td>

<td
width="70%"><asp:TextBox ID="FirstName" runat="server" MaxLength="50"
Columns="20" TextMode="SingleLine" CausesValidation="false" /></td>
</tr>

<tr>
<td
width="30%">*Your Last Name:</td>

<td
width="70%"><asp:TextBox ID="LastName" runat="server" MaxLength="50"
Columns="20" TextMode="SingleLine" CausesValidation="false" /></td>
</tr>

<tr>
<td
width="30%">*Your E-Mail:</td>

<td width="70%">
<asp:TextBox
ID="EMail" runat="server" MaxLength="100" Columns="37" TextMode="SingleLine"
CausesValidation="true" ValidationGroup="signup" />

<asp:RequiredFieldValidator ID="Reqpwd" ControlToValidate="EMail"
EnableClientScript="true" ErrorMessage="Please enter your e-mail address"
runat="server" SetFocusOnError="true" ValidationGroup="signup"
Display="None"></asp:RequiredFieldValidator>

<asp:RegularExpressionValidator id="RegExValEmail" runat="SERVER"
Display="None" ControlToValidate="EMail" EnableClientScript="true"
ErrorMessage="Please enter a valid e-mail address" ValidationGroup="signup"
ValidationExpression="^[a-zA-Z0-9][-\w\.\+]*@([a-zA-Z0-9][\w\-]*\.)+[a-zA-Z]
{2,3}$"></asp:RegularExpressionValidator>
</td>
</tr>

<tr>
<td
width="30%"><asp:Label ID="AppConfig_AffiliateProgramName2" runat="server"
</asp:Label></td>


<td width="70%">
<asp:TextBox
ID="AffPassword" TextMode="Password" Columns="37" maxlength="100"
runat="server" ValidationGroup="signup"
CausesValidation="true"></asp:TextBox> (at least 4 chars long)

<asp:RequiredFieldValidator ID="ReqValPassword" runat="server"
ControlToValidate="AffPassword" Display="none" EnableClientScript="true"
ErrorMessage="Please enter a password so you can login to this site at a
later time" ValidationGroup="signup"
SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td
width="30%">*Repeat Password:</td>

<td width="70%">
<asp:TextBox
ID="Password2" TextMode="Password" Columns="37" maxlength="100"
runat="server" ValidationGroup="signup"
CausesValidation="true"></asp:TextBox>

<asp:CompareValidator ValidationGroup="signup"
ControlToCompare="AffPassword" ControlToValidate="Password2" Display="none"
EnableClientScript="true" runat="server" ErrorMessage="Passwords do not
match, please re-enter a password again to verify" ID="PwdCompare"
SetFocusOnError="true" Operator="Equal"
Type="String"></asp:CompareValidator>
</td>
</tr>

<tr>
<td
width="30%">Company:</td>

<td
width="70%"><asp:TextBox ID="Company" Columns="34" MaxLength="100"
TextMode="singleLine" runat="server" CausesValidation="false" /></td>
</tr>

<tr>
<td
width="30%">*Address1:</td>

<td width="70%">
<asp:TextBox
ID="Address1" Columns="34" MaxLength="100" TextMode="singleLine"
runat="server" CausesValidation="true" ValidationGroup="signup" />

<asp:RequiredFieldValidator ID="ReqAddr1" runat="server"
ControlToValidate="Address1" ValidationGroup="signup" Display="None"
EnableClientScript="true" ErrorMessage="Please enter an address"
SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td
width="30%">Address2:</td>

<td width="70%">
<asp:TextBox
ID="Address2" Columns="34" MaxLength="100" TextMode="singleLine"
runat="server" />
</td>
</tr>

<tr>
<td
width="30%">Suite:</td>

<td
width="70%"><asp:TextBox ID="Suite" Columns="34" MaxLength="100"
TextMode="singleLine" runat="server" /></td>
</tr>

<tr>
<td
width="30%">*City:</td>

<td width="70%">
<asp:TextBox
ID="City" Columns="34" MaxLength="50" TextMode="singleLine" runat="server"
CausesValidation="true" ValidationGroup="signup" />

<asp:RequiredFieldValidator ID="RequiredFieldValidatorCity"
ErrorMessage="Please enter a city" runat="server" ControlToValidate="City"
ValidationGroup="signup" Display="None" EnableClientScript="true"
SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td
width="30%">*State/Province:</td>

<td
width="70%"><asp:DropDownList ID="State" runat="server"
Width="250"></asp:DropDownList></td>
</tr>

<tr>
<td
width="30%">*Zip:</td>

<td width="70%">
<asp:TextBox
ID="Zip" Columns="14" MaxLength="10" TextMode="singleLine" runat="server"
CausesValidation="true" ValidationGroup="signup" />

<asp:RequiredFieldValidator ControlToValidate="Zip" ErrorMessage="Please
enter the zipcode" ID="RequiredFieldValidatorZip" runat="server"
ValidationGroup="signup" Display="None" EnableClientScript="true"
SetFocusOnError="true"></asp:RequiredFieldValidator>
<input
type="hidden" name="Zip_vldt" value="[blankalert=][invalidalert=Please enter
a valid zipcode]" />
</td>
</tr>

<tr>
<td
width="30%">*Country:</td>

<td
width="70%"><asp:DropDownList ID="Country" runat="server"
Width="250"></asp:DropDownList></td>
</tr>

<tr>
<td
width="30%">*Phone:</td>

<td width="70%">
<asp:TextBox
ID="Phone" Columns="14" MaxLength="20" TextMode="singleLine" runat="server"
CausesValidation="true" ValidationGroup="signup" />

<asp:RequiredFieldValidator ControlToValidate="Phone" ErrorMessage="Please
enter the phone number" ID="RequiredFieldValidatorPhone" runat="server"
ValidationGroup="signup" Display="None" EnableClientScript="true"
SetFocusOnError="true"></asp:RequiredFieldValidator>
<input
type="hidden" name="Phone_vldt" value="[req][blankalert=Please enter your
phone number][invalidalert=Please enter a valid phone number]" />
</td>
</tr>
</table>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />

<asp:Table ID="tblAffWebInfo"
CellSpacing="0" CellPadding="4" Width="100%" runat="server">
<asp:TableRow>
<asp:TableCell
HorizontalAlign="left" VerticalAlign="top">
<asp:Image
ID="WebSiteInfoImage" runat="server" /><br />

<asp:Table
ID="tblWebSiteInfoBox" CellSpacing="0" CellPadding="4" Width="100%"
runat="server">
<asp:TableRow>
<asp:TableCell
HorizontalAlign="Left" VerticalAlign="Top">
<table
border="0" cellpadding="0" cellspacing="2" width="100%">
<tr>
<td
width="100%" colspan="2"><b>Online affiliates must also complete the
following fields.<br />
<br
/>
You
only need to enter these fields if you will be using a web site to link to
us.</b></td>
</tr>

<tr>
<td
width="100%" colspan="2">

<hr />

</td>
</tr>

<tr>
<td
width="45%">Your Web Site Name:</td>

<td
width="55%"><asp:TextBox ID="WebSiteName" Columns="30" MaxLength="100"
TextMode="singleLine" runat="server" /></td>
</tr>

<tr>
<td
width="45%">Your Web Site Description:</td>

<td
width="55%"><asp:TextBox ID="WebSiteDescription" Columns="30"
MaxLength="500" TextMode="singleLine" runat="server" /></td>
</tr>

<tr>
<td
width="45%">Your Web Site URL:</td>

<td
width="55%"><asp:TextBox ID="URL" Columns="30" MaxLength="100"
TextMode="singleLine" runat="server" /></td>
</tr>
</table>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
</asp:TableRow>
</asp:Table>

<div align="center">
<br />
<asp:CheckBox
ID="AgreeToTermsAndConditions" runat="server" CausesValidation="true"
ValidationGroup="signup" />By selecting this box and the "Join" button, I
agree to these <asp:Literal ID="TermsLink" runat="server"
Mode="PassThrough"></asp:Literal> <br />

<br />
<asp:Button ID="btnJoin"
Text="Join" OnClientClick="Page_ValidationActive=true;" runat="server"
CausesValidation="true" ValidationGroup="signup" />
<asp:ValidationSummary
DisplayMode="BulletList" ID="ValSummary" ShowMessageBox="true"
runat="server" ShowSummary="false" ValidationGroup="signup"
EnableClientScript="true" />
</div>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</asp:Panel>
</td>
</tr>
</table>
</body>
</html>
Feb 2 '06 #1
1 1796
Hi Buddy,

I wasn't clear on what your problem was. Can you restate the problem? Please
be sure to offer details about what you expect to happen and what is really
happening.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Buddy Ackerman" <bu**********@buddyackerman.com> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
I don't know what the problem is. I have a form with several controls that
need to be validated, I put a validation group in every form control,
every
validatoino control, the submit button and the validation summary control.
I want it to do client side validation so I set every validation control
display property to none and set the validation summary control to
ShowMessage to true and ShowSummary to false. Als form controls set
CausesValidation to true. I have a similar setup on a another form and
it
works. I also have the following the OnClientClick attribute
"Page_ValidationActive=true;" (although I don't know why this is
defaulting
to false in the page since I have EnableClientScript set to true in every
validation control and the validation summary control). I've icluded the
entire .aspx file below if you want to take a look at it.
--Buddy

<%@ Page language="c#" Inherits="AspDotNetStorefront.lat_signup"
CodeFile="lat_signup.aspx.cs" %>
<html>
<head>
</head>
<body>
<asp:Literal ID="JSPopupRoutines" runat="server"
Mode="PassThrough"></asp:Literal>
<table cellspacing="5" cellpadding="5" border="0" width="100%">
<tr>
<td valign="top" align="left">
<asp:Panel ID="pnlBeforeSignup" runat="server"
Visible="true">
<table cellspacing="0" cellpadding="0" width="171"
bgcolor="#AAAAAA" border="0">
<tr>
<td bgcolor="#AAAAAA">&nbsp;<asp:Label
ID="AppConfigAffiliateProgramName" runat="server" Font-Size="Smaller"
Font-Bold="true" ForeColor="white" BackColor="#AAAAAA"></asp:Label></td>
</tr>

<tr valign="middle" align="center">
<td>
<table cellspacing="0" cellpadding="4"
width="100%" bgcolor="#AAAAAA" border="0">
<tr>
<td valign="top"
bgcolor="#CCCCCC">
<center>
<a
href="lat_signin.aspx"><asp:Image ID="imgLogin" AlternateText="Affiliate
Login" runat="server" /></a>
</center>
</td>
</tr>
</table>
</td>
</tr>
</table>

<p>&nbsp;</p>

<table cellspacing="0" cellpadding="0" width="171"
bgcolor="#AAAAAA" border="0">
<tr>
<td bgcolor="#AAAAAA" height="18"><b
class="small" style="COLOR: #ffffff">&nbsp;Learn More</b></td>
</tr>
<tr valign="middle" align="center">
<td>
<table cellspacing="0" cellpadding="4"
width="100%" bgcolor="#AAAAAA" border="0">
<tr>
<td valign="top" align="left"
width="100%" bgcolor="#ffffff">Join our rapidly growing network of
<asp:Literal ID="AppConfigAffiliateProgramName2" runat="server"
Mode="PassThrough"></asp:Literal> <a href="t-affiliate.aspx">Read
more</a>.</td>
</tr>
</table>
</td>
</tr>
</table>

<p>&nbsp;</p>

<table cellspacing="0" cellpadding="0" width="171"
bgcolor="#AAAAAA" border="0">
<tr>
<td bgcolor="#AAAAAA" height="18"><b
style="color: #ffffff" class="small">&nbsp;Need Help?</b></td>
</tr>

<tr valign="middle" align="center">
<td>
<table cellspacing="0" cellpadding="4"
width="100%" bgcolor="#AAAAAA" border="0">
<tr>
<td valign="top" align="left"
width="100%" bgcolor="#ffffff">&bull; <a href="lat_signin.aspx">Forgot
your
password?</a><br />
&bull; <a
href="lat_account.aspx">Your Account Page</a><br />
&bull; <a
href="t-affiliate_faq.aspx">FAQs</a><br />
&bull; <asp:HyperLink
ID="CustSvcEmailLink" runat="server" Text="Customer
Service"></asp:HyperLink></td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="pnlAfterSignup" runat="server"
Visible="false">
<table cellSpacing="0" cellPadding="1" width="171"
bgColor="#AAAAAA" border="0">
<tr>
<td bgcolor="#AAAAAA" height="18"><b
style="color: #ffffff" class="small">&nbsp;Program Links</b></td>
</tr>
<tr valign="middle" align="center">
<td>
<table cellSpacing="0" cellPadding="4"
width="100%" bgColor="#AAAAAA" border="0">
<tr>
<td vAlign="top" align="left"
width="100%" bgColor="#ffffff">
&bull; <a
href="lat_account.aspx">Account Home</a><br>
&bull; <a
href="lat_getlinking.aspx">Web Linking Instructions</a><br>
&bull; <a
href="lat_driver.aspx?topic=affiliate_faq">FAQs</a><br>
&bull; <asp:HyperLink
ID="lnkAskAQuestion" Text="Ask A Question"
runat="server"></asp:HyperLink><br>
&bull; <a
href="lat_driver.aspx?topic=affiliate_terms">Terms &amp; Conditions</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>

<br/><br/>
<asp:Label ID="lblErrorMsg" runat="server"
Font-Bold="true" ForeColor="red" ></asp:Label>

</td>

<td width="100%" align="left" valign="top">
<asp:Image ID="AffiliateHeader" runat="server"
AlternateText="" /><br /><br />
<asp:Panel ID="pnlSignupSuccess" runat="server"
Visible="false">
<asp:Label ID="lblSignupSuccess" runat="server"
Font-Bold="true"></asp:Label>
</asp:Panel>

<asp:Panel ID="pnlSignedInMsg" runat="server"
Visible="false">
You're already signed in...please <a
href="lat_signout.aspx">sign out</a> here
</asp:Panel>

<asp:Panel ID="pnlSignUpForm" runat="server"
Visible="false">

<p>
<b class="h1">Sign Up Below</b><br />
<span class="serif">Please complete the sign-up
form below. If you have a web site that you will be using to link to us,
please complete the additional fields. If you do not have a web site, just
ignore the additional fields.</span>
<br /><br />
</p>

<form id="Form1" runat="server">
<asp:Table ID="tblAccount" CellSpacing="0"
CellPadding="2" Width="100%" runat="server">
<asp:TableRow>
<asp:TableCell HorizontalAlign="left"
VerticalAlign="top">
<asp:Image ID="accountinfo_gif"
runat="server" AlternateText="" /><br />

<asp:Table ID="tblAcctInfoBox"
CellSpacing="0" CellPadding="4" Width="100%" runat="server">
<asp:TableRow>
<asp:TableCell
HorizontalAlign="left" VerticalAlign="top">
<table border="0"
cellpadding="0" cellspacing="2" width="100%">
<tr>
<td
width="100%"
colspan="2"><asp:Label runat="server" ID="AppConfigAffiliateProgramName3"
Font-Bold="true"></asp:Label></td>
</tr>

<tr>
<td
width="100%"
colspan="2">
<hr />
</td>
</tr>

<tr>
<td
width="30%">*Your First Name:</td>

<td
width="70%"><asp:TextBox ID="FirstName" runat="server" MaxLength="50"
Columns="20" TextMode="SingleLine" CausesValidation="false" /></td>
</tr>

<tr>
<td
width="30%">*Your Last Name:</td>

<td
width="70%"><asp:TextBox ID="LastName" runat="server" MaxLength="50"
Columns="20" TextMode="SingleLine" CausesValidation="false" /></td>
</tr>

<tr>
<td
width="30%">*Your E-Mail:</td>

<td
width="70%">

<asp:TextBox
ID="EMail" runat="server" MaxLength="100" Columns="37"
TextMode="SingleLine"
CausesValidation="true" ValidationGroup="signup" />

<asp:RequiredFieldValidator ID="Reqpwd" ControlToValidate="EMail"
EnableClientScript="true" ErrorMessage="Please enter your e-mail address"
runat="server" SetFocusOnError="true" ValidationGroup="signup"
Display="None"></asp:RequiredFieldValidator>

<asp:RegularExpressionValidator id="RegExValEmail" runat="SERVER"
Display="None" ControlToValidate="EMail" EnableClientScript="true"
ErrorMessage="Please enter a valid e-mail address"
ValidationGroup="signup"
ValidationExpression="^[a-zA-Z0-9][-\w\.\+]*@([a-zA-Z0-9][\w\-]*\.)+[a-zA-Z]
{2,3}$"></asp:RegularExpressionValidator>
</td>
</tr>

<tr>
<td
width="30%"><asp:Label ID="AppConfig_AffiliateProgramName2" runat="server"
</asp:Label></td>


<td
width="70%">

<asp:TextBox
ID="AffPassword" TextMode="Password" Columns="37" maxlength="100"
runat="server" ValidationGroup="signup"
CausesValidation="true"></asp:TextBox> (at least 4 chars long)

<asp:RequiredFieldValidator ID="ReqValPassword" runat="server"
ControlToValidate="AffPassword" Display="none" EnableClientScript="true"
ErrorMessage="Please enter a password so you can login to this site at a
later time" ValidationGroup="signup"
SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td
width="30%">*Repeat Password:</td>

<td
width="70%">

<asp:TextBox
ID="Password2" TextMode="Password" Columns="37" maxlength="100"
runat="server" ValidationGroup="signup"
CausesValidation="true"></asp:TextBox>

<asp:CompareValidator ValidationGroup="signup"
ControlToCompare="AffPassword" ControlToValidate="Password2"
Display="none"
EnableClientScript="true" runat="server" ErrorMessage="Passwords do not
match, please re-enter a password again to verify" ID="PwdCompare"
SetFocusOnError="true" Operator="Equal"
Type="String"></asp:CompareValidator>
</td>
</tr>

<tr>
<td
width="30%">Company:</td>

<td
width="70%"><asp:TextBox ID="Company" Columns="34" MaxLength="100"
TextMode="singleLine" runat="server" CausesValidation="false" /></td>
</tr>

<tr>
<td
width="30%">*Address1:</td>

<td
width="70%">

<asp:TextBox
ID="Address1" Columns="34" MaxLength="100" TextMode="singleLine"
runat="server" CausesValidation="true" ValidationGroup="signup" />

<asp:RequiredFieldValidator ID="ReqAddr1" runat="server"
ControlToValidate="Address1" ValidationGroup="signup" Display="None"
EnableClientScript="true" ErrorMessage="Please enter an address"
SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td
width="30%">Address2:</td>

<td
width="70%">

<asp:TextBox
ID="Address2" Columns="34" MaxLength="100" TextMode="singleLine"
runat="server" />
</td>
</tr>

<tr>
<td
width="30%">Suite:</td>

<td
width="70%"><asp:TextBox ID="Suite" Columns="34" MaxLength="100"
TextMode="singleLine" runat="server" /></td>
</tr>

<tr>
<td
width="30%">*City:</td>

<td
width="70%">

<asp:TextBox
ID="City" Columns="34" MaxLength="50" TextMode="singleLine"
runat="server"
CausesValidation="true" ValidationGroup="signup" />

<asp:RequiredFieldValidator ID="RequiredFieldValidatorCity"
ErrorMessage="Please enter a city" runat="server" ControlToValidate="City"
ValidationGroup="signup" Display="None" EnableClientScript="true"
SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>
</tr>

<tr>
<td
width="30%">*State/Province:</td>

<td
width="70%"><asp:DropDownList ID="State" runat="server"
Width="250"></asp:DropDownList></td>
</tr>

<tr>
<td
width="30%">*Zip:</td>

<td
width="70%">

<asp:TextBox
ID="Zip" Columns="14" MaxLength="10" TextMode="singleLine" runat="server"
CausesValidation="true" ValidationGroup="signup" />

<asp:RequiredFieldValidator ControlToValidate="Zip" ErrorMessage="Please
enter the zipcode" ID="RequiredFieldValidatorZip" runat="server"
ValidationGroup="signup" Display="None" EnableClientScript="true"
SetFocusOnError="true"></asp:RequiredFieldValidator>
<input
type="hidden" name="Zip_vldt" value="[blankalert=][invalidalert=Please
enter
a valid zipcode]" />
</td>
</tr>

<tr>
<td
width="30%">*Country:</td>

<td
width="70%"><asp:DropDownList ID="Country" runat="server"
Width="250"></asp:DropDownList></td>
</tr>

<tr>
<td
width="30%">*Phone:</td>

<td
width="70%">

<asp:TextBox
ID="Phone" Columns="14" MaxLength="20" TextMode="singleLine"
runat="server"
CausesValidation="true" ValidationGroup="signup" />

<asp:RequiredFieldValidator ControlToValidate="Phone" ErrorMessage="Please
enter the phone number" ID="RequiredFieldValidatorPhone" runat="server"
ValidationGroup="signup" Display="None" EnableClientScript="true"
SetFocusOnError="true"></asp:RequiredFieldValidator>
<input
type="hidden" name="Phone_vldt" value="[req][blankalert=Please enter your
phone number][invalidalert=Please enter a valid phone number]" />
</td>
</tr>
</table>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />

<asp:Table ID="tblAffWebInfo"
CellSpacing="0" CellPadding="4" Width="100%" runat="server">
<asp:TableRow>
<asp:TableCell
HorizontalAlign="left" VerticalAlign="top">
<asp:Image
ID="WebSiteInfoImage" runat="server" /><br />

<asp:Table
ID="tblWebSiteInfoBox" CellSpacing="0" CellPadding="4" Width="100%"
runat="server">
<asp:TableRow>
<asp:TableCell
HorizontalAlign="Left" VerticalAlign="Top">
<table
border="0" cellpadding="0" cellspacing="2" width="100%">
<tr>
<td
width="100%" colspan="2"><b>Online affiliates must also complete the
following fields.<br />
<br
/>
You
only need to enter these fields if you will be using a web site to link to
us.</b></td>
</tr>

<tr>
<td
width="100%" colspan="2">

<hr />

</td>
</tr>

<tr>
<td
width="45%">Your Web Site Name:</td>

<td
width="55%"><asp:TextBox ID="WebSiteName" Columns="30" MaxLength="100"
TextMode="singleLine" runat="server" /></td>
</tr>

<tr>
<td
width="45%">Your Web Site Description:</td>

<td
width="55%"><asp:TextBox ID="WebSiteDescription" Columns="30"
MaxLength="500" TextMode="singleLine" runat="server" /></td>
</tr>

<tr>
<td
width="45%">Your Web Site URL:</td>

<td
width="55%"><asp:TextBox ID="URL" Columns="30" MaxLength="100"
TextMode="singleLine" runat="server" /></td>
</tr>
</table>

</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
</asp:TableRow>
</asp:Table>

<div align="center">
<br />
<asp:CheckBox
ID="AgreeToTermsAndConditions" runat="server" CausesValidation="true"
ValidationGroup="signup" />By selecting this box and the "Join" button, I
agree to these <asp:Literal ID="TermsLink" runat="server"
Mode="PassThrough"></asp:Literal> <br />

<br />
<asp:Button ID="btnJoin"
Text="Join" OnClientClick="Page_ValidationActive=true;" runat="server"
CausesValidation="true" ValidationGroup="signup" />
<asp:ValidationSummary
DisplayMode="BulletList" ID="ValSummary" ShowMessageBox="true"
runat="server" ShowSummary="false" ValidationGroup="signup"
EnableClientScript="true" />
</div>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</asp:Panel>
</td>
</tr>
</table>
</body>
</html>

Feb 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Nedu N | last post by:
Hi, I want to have confirmation(Yes/No) on a button of the webform in which there are many validation controls. I want all the validation controls to be triggered first and then Yes/No...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
6
by: Stephen | last post by:
Hi, the validation controls dont work on Netscape or Mozilla and only on Internet Explorer why? How do i correct this problem? Thanks
2
by: Martyn Fewtrell | last post by:
Dear All I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work. I believe it to be specific to the server as if I create an ASP.Net page on the...
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
2
by: Tim Frawley | last post by:
Source code attached indicates my problem with validation and a button bar save button. Fill the Textbox with some text then tab off the control. The message box will display the text in the...
5
by: Kyle | last post by:
On my Development System, all the page validation controls work fine (WinXP Pro + SP2, VS.NET 2003, .NET v1.1.4322). On the Production System, none of the page validation controls are working...
12
by: Dabbler | last post by:
I need to insure that at least one of three phone number fields has a value (requiredfield) but I'm not sure of a way to implement this without server side logic. Is there a way to use the...
0
by: dhurwitz | last post by:
Hi, In my ASP.NET 2.0 web app, I have a user control, ucBinEdges, with several text boxes. The user control has several validation controls validating the Text of these text boxes -...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.