469,362 Members | 2,611 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,362 developers. It's quick & easy.

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 1630
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Nedu N | last post: by
6 posts views Thread by Stephen | last post: by
2 posts views Thread by Martyn Fewtrell | last post: by
7 posts views Thread by Ryan Ternier | last post: by
2 posts views Thread by Tim Frawley | last post: by
5 posts views Thread by Kyle | last post: by
12 posts views Thread by Dabbler | last post: by
reply views Thread by dhurwitz | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.