473,388 Members | 1,426 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,388 software developers and data experts.

Netscape required field validation problems

I have an interesting problem when I run the following
code in Netscape (7.02) vs. IE. This page works great in
IE and all my controls bring up the validation summary
dialog box if the required field is not filled out.
However in Netscape NONE of the required field
validations occurs at all in Netscape. The form is
posting correctly because I can walk through the post
back process. Any ideas why this is happening or how to
fix it?

Thanks in advance...

Here is the page:
<%@ Page Language="vb" SmartNavigation="false"
AutoEventWireup="false" Codebehind="SignUpToday2.aspx.vb"
Inherits="PCBC.SignUpToday2" EnableViewState="True"%>
<%@ Register TagPrefix="Navigation" TagName="Bottom"
Src="..\bottom.ascx" %>
<%@ Register TagPrefix="Navigation" TagName="Left"
Src="..\left.ascx" %>
<%@ Register TagPrefix="Navigation" TagName="Top"
Src="..\top.ascx" %>
<%@ OutputCache Duration="60" VaryByParam="*"
VaryByCustom="browser" %>
<HTML>
<HEAD>
<title>SIGN UP TODAY</title>

<form id="Form1" method="post"
runat="server">
<!--start entire page
table with 3 rows -->
<table height="100%"
cellSpacing="0" cellPadding="0" width="100%"
align="center" border="0">
<tr>
<!--start
Top Nav -->
<td
vAlign="top" align="left"
bgColor="#000000"><NAVIGATION:TOP id="Top" runat="server"
NAME="Top"></NAVIGATION:TOP></td>
<!--end
Top Nav --></tr>
<tr>
<td
vAlign="top" align="left" bgColor="#000000" height="100%">

<!--start main table with 2 columns -->

<table cellSpacing="0" cellPadding="0"
width="100%" border="0">

<tr>

<!--start Left Nav table with 3 rows -->

<!--<td bgcolor="#000000" align="left"
valign="top" width="108">

<!-- <Navigation:Left runat="server"
ID="Left" NAME="Left"></Navigation:Left>

<!--</td>-->

<td bgColor="#000000">

<!--------------------------------
-------->

<table cellSpacing="0"
cellPadding="0" width="100%" align="center" border="0">

<tr vAlign="top"
align="left">

<td
bgColor="#000000" height="18"><font face="Tahoma"
size="3"><b>

</b></font>

</td>

</tr>

<tr vAlign="top"
align="left">

<td
bgColor="#000000" height="18"><font face="Tahoma"
size="3"><b>


</b></font>

</td>

</tr>

<tr>

<td vAlign="top"
align="center" width="74%" bgColor="#000000" height="281">

<table
height="227" cellSpacing="0" cellPadding="0" width="95%"
align="center" border="0">
<tr>
<td width="24"
background="../images/frame_top_left.jpg"
bgColor="#000000" height="15">&nbsp;</td>
<td width="736"
background="../images/frame_top_mid.jpg"
bgColor="#000000" height="15">&nbsp;</td>
<td width="29"
background="../images/frame_top_right.jpg"
bgColor="#000000" height="15">&nbsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_left.jpg" bgColor="#000000"
height="210">&nbsp;</td>
<td vAlign="middle" align="center" width="736"
bgColor="#000000" height="210">
<table cellSpacing="0" cellPadding="0"
width="100%" border="0">
<tr>
<td bgColor="#000000"
colSpan="2">Please enter your contact information below.
All
fields with an
asterisk (*) next to them are required.<BR>
<FONT
color="red">You must be at least 18 years old to become a
member of

PCBootyCall.</FONT>
<br>
<br>

<asp:validationsummary id="ValidationSummary1"
runat="server" ShowMessageBox="True" HeaderText="<b>The
following errors were detected:</b>"

Height="24px" Width="430px"
ShowSummary="False"></asp:validationsummary></td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000" height="27">Email Address:
</td>
<td bgColor="#000000"
height="27"><asp:textbox id="txtEmailAddress"
Height="20px" Columns="45" Width="231px" MaxLength="50"
Runat="server"

ForeColor="Black"
BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator1" runat="server"
ControlToValidate="txtEmailAddress"

ErrorMessage="Email Address must be entered.">
*</asp:requiredfieldvalidator><asp:comparevalidato
r id="CompareValidator1" runat="server"
ControlToValidate="txtEmailAddress2" ErrorMessage="Email
Addresses must match."

ControlToCompare="txtEmailAddress"
Display="Dynamic">*</asp:comparevalidator><asp:regularexpr
essionvalidator id="RegularExpressionValidator1"
runat="server" ControlToValidate="txtEmailAddress"

ErrorMessage="Invalid Email Address"
Display="Dynamic" ValidationExpression="\w+([-+.]\w+)*@\w+
([-.]\w+)*\.\w+([-.]\w+)
*">*</asp:regularexpressionvalidator><br>
<FONT
color="red">Note: In order to complete the sign up
process, we will need to
send a
confirmation message to the email address you enter
above.</FONT> Be
sure to include
your "@serviceprovider.com" domain.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000" height="24">Confirm Email
Address:
</td>
<td width="297"
bgColor="#000000" height="24"><asp:textbox
id="txtEmailAddress2" Height="20px" Columns="45"
Width="231px" MaxLength="50" Runat="server"

ForeColor="Black"
BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator2" runat="server"
ControlToValidate="txtEmailAddress2"

ErrorMessage="Confirm Email Address must be
entered"
Display="Dynamic">*</asp:requiredfieldvalidator><br>
Please re-enter
your email address.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000">Name:
</td>
<td width="297"
bgColor="#000000"><asp:textbox id="txtFirstName"
Height="20px" Width="99px" MaxLength="15" Runat="server"
ForeColor="Black"

BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator3" runat="server"
ControlToValidate="txtFirstName" ErrorMessage="First Name
must be entered."

Display="Dynamic">*</asp:requiredfieldvalidator><a
sp:textbox id="txtLastName" Height="20px" Width="124px"
MaxLength="25" Runat="server" ForeColor="Black"

BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator4" runat="server"
ControlToValidate="txtLastName" ErrorMessage="Last Name
must be entered."

Display="Dynamic">*</asp:requiredfieldvalidator><b
r>
First

Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Last Name
</td>
</tr>


<tr>
<td width="161"
bgColor="#000000">&nbsp;
</td>
<td width="297"
bgColor="#000000"><br>
<asp:imagebutton
id="imgbtnContinue" runat="server"
ImageUrl="../Images/button_continue.jpg"></asp:imagebutton
</td>

</tr>
<TR>
<td bgColor="#000000"
colSpan="2"><br>
<FONT
color="red"><B>Note to AOL and CompuServe Members:</B><BR>
Make sure
your Mail Controls are set to receive emails from

www.pcbootycall.com. If you have Internet email
blocked, you will need to
update
your Mail Controls. To make this update, enter the
Keyword "Mail
Controls"
on AOL or CompuServe</FONT>
</td>
</TR>
</table>
</td>
<td width="29"
background="../images/frame_right.jpg" bgColor="#000000"
height="210">&nbsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_bottom_left.jpg"
bgColor="#000000" height="2">&nbsp;</td>
<td width="736"
background="../images/frame_bottom_mid.jpg"
bgColor="#000000" height="2">&nbsp;</td>
<td width="29"
background="../images/frame_bottom_right.jpg"
bgColor="#000000" height="2">&nbsp;</td>
</tr>

</table>

</td>

</tr>

</table>

<!--------------------------------
--------></td>

</tr>

</table>
</td>
<tr>
<!--start
Bottom Footer -->
<td
vAlign="top" align="left" width="100%"
bgColor="#000000"><NAVIGATION:BOTTOM id="Bottom"
runat="server" NAME="Botttom"></NAVIGATION:BOTTOM></td>
<!--end
Bottom Footer --></tr>
</table>
</form>
</font>
</body>
</HTML>
Nov 17 '05 #1
3 2742
Hi,

if you mean client-side validation, that works only on IE by default. Other
browsers need to utilize server-side validation, that occurs automatically
as well, but you need to check Page.IsValid (or if specific validator then
it's IsValid) before critical code that relies on the validation runs. In
this case in the postback event, before any other code runs, check
Page.IsValid and if it's True then let the code run.

There are also so called DOM-compliant validation controls out there that do
the validation on client-side for every DOM-compliant browser.. If you
absolutely need such functionality, look for such controls.

--
Teemu Keiski
MCP,Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi

ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com

Email:
jo****@aspalliance.com

"Rick" <ri********@hotmail.com> kirjoitti viestissä
news:01****************************@phx.gbl...
I have an interesting problem when I run the following
code in Netscape (7.02) vs. IE. This page works great in
IE and all my controls bring up the validation summary
dialog box if the required field is not filled out.
However in Netscape NONE of the required field
validations occurs at all in Netscape. The form is
posting correctly because I can walk through the post
back process. Any ideas why this is happening or how to
fix it?

Thanks in advance...

Here is the page:
<%@ Page Language="vb" SmartNavigation="false"
AutoEventWireup="false" Codebehind="SignUpToday2.aspx.vb"
Inherits="PCBC.SignUpToday2" EnableViewState="True"%>
<%@ Register TagPrefix="Navigation" TagName="Bottom"
Src="..\bottom.ascx" %>
<%@ Register TagPrefix="Navigation" TagName="Left"
Src="..\left.ascx" %>
<%@ Register TagPrefix="Navigation" TagName="Top"
Src="..\top.ascx" %>
<%@ OutputCache Duration="60" VaryByParam="*"
VaryByCustom="browser" %>
<HTML>
<HEAD>
<title>SIGN UP TODAY</title>

<form id="Form1" method="post"
runat="server">
<!--start entire page
table with 3 rows -->
<table height="100%"
cellSpacing="0" cellPadding="0" width="100%"
align="center" border="0">
<tr>
<!--start
Top Nav -->
<td
vAlign="top" align="left"
bgColor="#000000"><NAVIGATION:TOP id="Top" runat="server"
NAME="Top"></NAVIGATION:TOP></td>
<!--end
Top Nav --></tr>
<tr>
<td
vAlign="top" align="left" bgColor="#000000" height="100%">

<!--start main table with 2 columns -->

<table cellSpacing="0" cellPadding="0"
width="100%" border="0">

<tr>

<!--start Left Nav table with 3 rows -->

<!--<td bgcolor="#000000" align="left"
valign="top" width="108">

<!-- <Navigation:Left runat="server"
ID="Left" NAME="Left"></Navigation:Left>

<!--</td>-->

<td bgColor="#000000">

<!--------------------------------
-------->

<table cellSpacing="0"
cellPadding="0" width="100%" align="center" border="0">

<tr vAlign="top"
align="left">

<td
bgColor="#000000" height="18"><font face="Tahoma"
size="3"><b>

</b></font>

</td>

</tr>

<tr vAlign="top"
align="left">

<td
bgColor="#000000" height="18"><font face="Tahoma"
size="3"><b>


</b></font>

</td>

</tr>

<tr>

<td vAlign="top"
align="center" width="74%" bgColor="#000000" height="281">

<table
height="227" cellSpacing="0" cellPadding="0" width="95%"
align="center" border="0">
<tr>
<td width="24"
background="../images/frame_top_left.jpg"
bgColor="#000000" height="15">&nbsp;</td>
<td width="736"
background="../images/frame_top_mid.jpg"
bgColor="#000000" height="15">&nbsp;</td>
<td width="29"
background="../images/frame_top_right.jpg"
bgColor="#000000" height="15">&nbsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_left.jpg" bgColor="#000000"
height="210">&nbsp;</td>
<td vAlign="middle" align="center" width="736"
bgColor="#000000" height="210">
<table cellSpacing="0" cellPadding="0"
width="100%" border="0">
<tr>
<td bgColor="#000000"
colSpan="2">Please enter your contact information below.
All
fields with an
asterisk (*) next to them are required.<BR>
<FONT
color="red">You must be at least 18 years old to become a
member of

PCBootyCall.</FONT>
<br>
<br>

<asp:validationsummary id="ValidationSummary1"
runat="server" ShowMessageBox="True" HeaderText="<b>The
following errors were detected:</b>"

Height="24px" Width="430px"
ShowSummary="False"></asp:validationsummary></td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000" height="27">Email Address:
</td>
<td bgColor="#000000"
height="27"><asp:textbox id="txtEmailAddress"
Height="20px" Columns="45" Width="231px" MaxLength="50"
Runat="server"

ForeColor="Black"
BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator1" runat="server"
ControlToValidate="txtEmailAddress"

ErrorMessage="Email Address must be entered.">
*</asp:requiredfieldvalidator><asp:comparevalidato
r id="CompareValidator1" runat="server"
ControlToValidate="txtEmailAddress2" ErrorMessage="Email
Addresses must match."

ControlToCompare="txtEmailAddress"
Display="Dynamic">*</asp:comparevalidator><asp:regularexpr
essionvalidator id="RegularExpressionValidator1"
runat="server" ControlToValidate="txtEmailAddress"

ErrorMessage="Invalid Email Address"
Display="Dynamic" ValidationExpression="\w+([-+.]\w+)*@\w+
([-.]\w+)*\.\w+([-.]\w+)
*">*</asp:regularexpressionvalidator><br>
<FONT
color="red">Note: In order to complete the sign up
process, we will need to
send a
confirmation message to the email address you enter
above.</FONT> Be
sure to include
your "@serviceprovider.com" domain.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000" height="24">Confirm Email
Address:
</td>
<td width="297"
bgColor="#000000" height="24"><asp:textbox
id="txtEmailAddress2" Height="20px" Columns="45"
Width="231px" MaxLength="50" Runat="server"

ForeColor="Black"
BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator2" runat="server"
ControlToValidate="txtEmailAddress2"

ErrorMessage="Confirm Email Address must be
entered"
Display="Dynamic">*</asp:requiredfieldvalidator><br>
Please re-enter
your email address.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000">Name:
</td>
<td width="297"
bgColor="#000000"><asp:textbox id="txtFirstName"
Height="20px" Width="99px" MaxLength="15" Runat="server"
ForeColor="Black"

BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator3" runat="server"
ControlToValidate="txtFirstName" ErrorMessage="First Name
must be entered."

Display="Dynamic">*</asp:requiredfieldvalidator><a
sp:textbox id="txtLastName" Height="20px" Width="124px"
MaxLength="25" Runat="server" ForeColor="Black"

BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator4" runat="server"
ControlToValidate="txtLastName" ErrorMessage="Last Name
must be entered."

Display="Dynamic">*</asp:requiredfieldvalidator><b
r>
First

Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Last Name
</td>
</tr>


<tr>
<td width="161"
bgColor="#000000">&nbsp;
</td>
<td width="297"
bgColor="#000000"><br>
<asp:imagebutton
id="imgbtnContinue" runat="server"
ImageUrl="../Images/button_continue.jpg"></asp:imagebutton
</td>

</tr>
<TR>
<td bgColor="#000000"
colSpan="2"><br>
<FONT
color="red"><B>Note to AOL and CompuServe Members:</B><BR>
Make sure
your Mail Controls are set to receive emails from

www.pcbootycall.com. If you have Internet email
blocked, you will need to
update
your Mail Controls. To make this update, enter the
Keyword "Mail
Controls"
on AOL or CompuServe</FONT>
</td>
</TR>
</table>
</td>
<td width="29"
background="../images/frame_right.jpg" bgColor="#000000"
height="210">&nbsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_bottom_left.jpg"
bgColor="#000000" height="2">&nbsp;</td>
<td width="736"
background="../images/frame_bottom_mid.jpg"
bgColor="#000000" height="2">&nbsp;</td>
<td width="29"
background="../images/frame_bottom_right.jpg"
bgColor="#000000" height="2">&nbsp;</td>
</tr>

</table>

</td>

</tr>

</table>

<!--------------------------------
--------></td>

</tr>

</table>
</td>
<tr>
<!--start
Bottom Footer -->
<td
vAlign="top" align="left" width="100%"
bgColor="#000000"><NAVIGATION:BOTTOM id="Bottom"
runat="server" NAME="Botttom"></NAVIGATION:BOTTOM></td>
<!--end
Bottom Footer --></tr>
</table>
</form>
</font>
</body>
</HTML>

Nov 17 '05 #2
Validate using IsValid() on the Server side. You should always do this, even
when client side is working, as one common hack attack is to create your own
form to by pass client side validation.

Not sure on NetScape 7.0. I know many browsers do not support client side
validation in .NET. NS has done some strange garbage with the 7.x version of
their browser, which breaks a lot of code.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

************************************************** **************************
****
Think Outside the Box!
************************************************** **************************
****
"Rick" <ri********@hotmail.com> wrote in message
news:01****************************@phx.gbl...
I have an interesting problem when I run the following
code in Netscape (7.02) vs. IE. This page works great in
IE and all my controls bring up the validation summary
dialog box if the required field is not filled out.
However in Netscape NONE of the required field
validations occurs at all in Netscape. The form is
posting correctly because I can walk through the post
back process. Any ideas why this is happening or how to
fix it?

Thanks in advance...

Here is the page:
<%@ Page Language="vb" SmartNavigation="false"
AutoEventWireup="false" Codebehind="SignUpToday2.aspx.vb"
Inherits="PCBC.SignUpToday2" EnableViewState="True"%>
<%@ Register TagPrefix="Navigation" TagName="Bottom"
Src="..\bottom.ascx" %>
<%@ Register TagPrefix="Navigation" TagName="Left"
Src="..\left.ascx" %>
<%@ Register TagPrefix="Navigation" TagName="Top"
Src="..\top.ascx" %>
<%@ OutputCache Duration="60" VaryByParam="*"
VaryByCustom="browser" %>
<HTML>
<HEAD>
<title>SIGN UP TODAY</title>

<form id="Form1" method="post"
runat="server">
<!--start entire page
table with 3 rows -->
<table height="100%"
cellSpacing="0" cellPadding="0" width="100%"
align="center" border="0">
<tr>
<!--start
Top Nav -->
<td
vAlign="top" align="left"
bgColor="#000000"><NAVIGATION:TOP id="Top" runat="server"
NAME="Top"></NAVIGATION:TOP></td>
<!--end
Top Nav --></tr>
<tr>
<td
vAlign="top" align="left" bgColor="#000000" height="100%">

<!--start main table with 2 columns -->

<table cellSpacing="0" cellPadding="0"
width="100%" border="0">

<tr>

<!--start Left Nav table with 3 rows -->

<!--<td bgcolor="#000000" align="left"
valign="top" width="108">

<!-- <Navigation:Left runat="server"
ID="Left" NAME="Left"></Navigation:Left>

<!--</td>-->

<td bgColor="#000000">

<!--------------------------------
-------->

<table cellSpacing="0"
cellPadding="0" width="100%" align="center" border="0">

<tr vAlign="top"
align="left">

<td
bgColor="#000000" height="18"><font face="Tahoma"
size="3"><b>

</b></font>

</td>

</tr>

<tr vAlign="top"
align="left">

<td
bgColor="#000000" height="18"><font face="Tahoma"
size="3"><b>


</b></font>

</td>

</tr>

<tr>

<td vAlign="top"
align="center" width="74%" bgColor="#000000" height="281">

<table
height="227" cellSpacing="0" cellPadding="0" width="95%"
align="center" border="0">
<tr>
<td width="24"
background="../images/frame_top_left.jpg"
bgColor="#000000" height="15">&nbsp;</td>
<td width="736"
background="../images/frame_top_mid.jpg"
bgColor="#000000" height="15">&nbsp;</td>
<td width="29"
background="../images/frame_top_right.jpg"
bgColor="#000000" height="15">&nbsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_left.jpg" bgColor="#000000"
height="210">&nbsp;</td>
<td vAlign="middle" align="center" width="736"
bgColor="#000000" height="210">
<table cellSpacing="0" cellPadding="0"
width="100%" border="0">
<tr>
<td bgColor="#000000"
colSpan="2">Please enter your contact information below.
All
fields with an
asterisk (*) next to them are required.<BR>
<FONT
color="red">You must be at least 18 years old to become a
member of

PCBootyCall.</FONT>
<br>
<br>

<asp:validationsummary id="ValidationSummary1"
runat="server" ShowMessageBox="True" HeaderText="<b>The
following errors were detected:</b>"

Height="24px" Width="430px"
ShowSummary="False"></asp:validationsummary></td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000" height="27">Email Address:
</td>
<td bgColor="#000000"
height="27"><asp:textbox id="txtEmailAddress"
Height="20px" Columns="45" Width="231px" MaxLength="50"
Runat="server"

ForeColor="Black"
BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator1" runat="server"
ControlToValidate="txtEmailAddress"

ErrorMessage="Email Address must be entered.">
*</asp:requiredfieldvalidator><asp:comparevalidato
r id="CompareValidator1" runat="server"
ControlToValidate="txtEmailAddress2" ErrorMessage="Email
Addresses must match."

ControlToCompare="txtEmailAddress"
Display="Dynamic">*</asp:comparevalidator><asp:regularexpr
essionvalidator id="RegularExpressionValidator1"
runat="server" ControlToValidate="txtEmailAddress"

ErrorMessage="Invalid Email Address"
Display="Dynamic" ValidationExpression="\w+([-+.]\w+)*@\w+
([-.]\w+)*\.\w+([-.]\w+)
*">*</asp:regularexpressionvalidator><br>
<FONT
color="red">Note: In order to complete the sign up
process, we will need to
send a
confirmation message to the email address you enter
above.</FONT> Be
sure to include
your "@serviceprovider.com" domain.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000" height="24">Confirm Email
Address:
</td>
<td width="297"
bgColor="#000000" height="24"><asp:textbox
id="txtEmailAddress2" Height="20px" Columns="45"
Width="231px" MaxLength="50" Runat="server"

ForeColor="Black"
BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator2" runat="server"
ControlToValidate="txtEmailAddress2"

ErrorMessage="Confirm Email Address must be
entered"
Display="Dynamic">*</asp:requiredfieldvalidator><br>
Please re-enter
your email address.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000">Name:
</td>
<td width="297"
bgColor="#000000"><asp:textbox id="txtFirstName"
Height="20px" Width="99px" MaxLength="15" Runat="server"
ForeColor="Black"

BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator3" runat="server"
ControlToValidate="txtFirstName" ErrorMessage="First Name
must be entered."

Display="Dynamic">*</asp:requiredfieldvalidator><a
sp:textbox id="txtLastName" Height="20px" Width="124px"
MaxLength="25" Runat="server" ForeColor="Black"

BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator4" runat="server"
ControlToValidate="txtLastName" ErrorMessage="Last Name
must be entered."

Display="Dynamic">*</asp:requiredfieldvalidator><b
r>
First

Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Last Name
</td>
</tr>


<tr>
<td width="161"
bgColor="#000000">&nbsp;
</td>
<td width="297"
bgColor="#000000"><br>
<asp:imagebutton
id="imgbtnContinue" runat="server"
ImageUrl="../Images/button_continue.jpg"></asp:imagebutton
</td>

</tr>
<TR>
<td bgColor="#000000"
colSpan="2"><br>
<FONT
color="red"><B>Note to AOL and CompuServe Members:</B><BR>
Make sure
your Mail Controls are set to receive emails from

www.pcbootycall.com. If you have Internet email
blocked, you will need to
update
your Mail Controls. To make this update, enter the
Keyword "Mail
Controls"
on AOL or CompuServe</FONT>
</td>
</TR>
</table>
</td>
<td width="29"
background="../images/frame_right.jpg" bgColor="#000000"
height="210">&nbsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_bottom_left.jpg"
bgColor="#000000" height="2">&nbsp;</td>
<td width="736"
background="../images/frame_bottom_mid.jpg"
bgColor="#000000" height="2">&nbsp;</td>
<td width="29"
background="../images/frame_bottom_right.jpg"
bgColor="#000000" height="2">&nbsp;</td>
</tr>

</table>

</td>

</tr>

</table>

<!--------------------------------
--------></td>

</tr>

</table>
</td>
<tr>
<!--start
Bottom Footer -->
<td
vAlign="top" align="left" width="100%"
bgColor="#000000"><NAVIGATION:BOTTOM id="Bottom"
runat="server" NAME="Botttom"></NAVIGATION:BOTTOM></td>
<!--end
Bottom Footer --></tr>
</table>
</form>
</font>
</body>
</HTML>

Nov 17 '05 #3
The responses by Teemu and Cowboy never mentioned calling Page.Validate()
before checking Page.IsValid. I had thought that you needed to always call
Validate() before IsValid on the server side, but in re-reading the docs, it
does not appear that way, but can you explain when/what situations
Validate() is required to be called?

Thanks,
Chris

"Cowboy (Gregory A. Beamer)" <No************@comcast.netRemuvThis> wrote in
message news:uJ**************@tk2msftngp13.phx.gbl...
Validate using IsValid() on the Server side. You should always do this, even when client side is working, as one common hack attack is to create your own form to by pass client side validation.

Not sure on NetScape 7.0. I know many browsers do not support client side
validation in .NET. NS has done some strange garbage with the 7.x version of their browser, which breaks a lot of code.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

************************************************** ************************** ****
Think Outside the Box!
************************************************** ************************** ****
"Rick" <ri********@hotmail.com> wrote in message
news:01****************************@phx.gbl...
I have an interesting problem when I run the following
code in Netscape (7.02) vs. IE. This page works great in
IE and all my controls bring up the validation summary
dialog box if the required field is not filled out.
However in Netscape NONE of the required field
validations occurs at all in Netscape. The form is
posting correctly because I can walk through the post
back process. Any ideas why this is happening or how to
fix it?

Thanks in advance...

Here is the page:
<%@ Page Language="vb" SmartNavigation="false"
AutoEventWireup="false" Codebehind="SignUpToday2.aspx.vb"
Inherits="PCBC.SignUpToday2" EnableViewState="True"%>
<%@ Register TagPrefix="Navigation" TagName="Bottom"
Src="..\bottom.ascx" %>
<%@ Register TagPrefix="Navigation" TagName="Left"
Src="..\left.ascx" %>
<%@ Register TagPrefix="Navigation" TagName="Top"
Src="..\top.ascx" %>
<%@ OutputCache Duration="60" VaryByParam="*"
VaryByCustom="browser" %>
<HTML>
<HEAD>
<title>SIGN UP TODAY</title>

<form id="Form1" method="post"
runat="server">
<!--start entire page
table with 3 rows -->
<table height="100%"
cellSpacing="0" cellPadding="0" width="100%"
align="center" border="0">
<tr>
<!--start
Top Nav -->
<td
vAlign="top" align="left"
bgColor="#000000"><NAVIGATION:TOP id="Top" runat="server"
NAME="Top"></NAVIGATION:TOP></td>
<!--end
Top Nav --></tr>
<tr>
<td
vAlign="top" align="left" bgColor="#000000" height="100%">

<!--start main table with 2 columns -->

<table cellSpacing="0" cellPadding="0"
width="100%" border="0">

<tr>

<!--start Left Nav table with 3 rows -->

<!--<td bgcolor="#000000" align="left"
valign="top" width="108">

<!-- <Navigation:Left runat="server"
ID="Left" NAME="Left"></Navigation:Left>

<!--</td>-->

<td bgColor="#000000">

<!--------------------------------
-------->

<table cellSpacing="0"
cellPadding="0" width="100%" align="center" border="0">

<tr vAlign="top"
align="left">

<td
bgColor="#000000" height="18"><font face="Tahoma"
size="3"><b>

</b></font>

</td>

</tr>

<tr vAlign="top"
align="left">

<td
bgColor="#000000" height="18"><font face="Tahoma"
size="3"><b>


</b></font>

</td>

</tr>

<tr>

<td vAlign="top"
align="center" width="74%" bgColor="#000000" height="281">

<table
height="227" cellSpacing="0" cellPadding="0" width="95%"
align="center" border="0">
<tr>
<td width="24"
background="../images/frame_top_left.jpg"
bgColor="#000000" height="15">&nbsp;</td>
<td width="736"
background="../images/frame_top_mid.jpg"
bgColor="#000000" height="15">&nbsp;</td>
<td width="29"
background="../images/frame_top_right.jpg"
bgColor="#000000" height="15">&nbsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_left.jpg" bgColor="#000000"
height="210">&nbsp;</td>
<td vAlign="middle" align="center" width="736"
bgColor="#000000" height="210">
<table cellSpacing="0" cellPadding="0"
width="100%" border="0">
<tr>
<td bgColor="#000000"
colSpan="2">Please enter your contact information below.
All
fields with an
asterisk (*) next to them are required.<BR>
<FONT
color="red">You must be at least 18 years old to become a
member of

PCBootyCall.</FONT>
<br>
<br>

<asp:validationsummary id="ValidationSummary1"
runat="server" ShowMessageBox="True" HeaderText="<b>The
following errors were detected:</b>"

Height="24px" Width="430px"
ShowSummary="False"></asp:validationsummary></td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000" height="27">Email Address:
</td>
<td bgColor="#000000"
height="27"><asp:textbox id="txtEmailAddress"
Height="20px" Columns="45" Width="231px" MaxLength="50"
Runat="server"

ForeColor="Black"
BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator1" runat="server"
ControlToValidate="txtEmailAddress"

ErrorMessage="Email Address must be entered.">
*</asp:requiredfieldvalidator><asp:comparevalidato
r id="CompareValidator1" runat="server"
ControlToValidate="txtEmailAddress2" ErrorMessage="Email
Addresses must match."

ControlToCompare="txtEmailAddress"
Display="Dynamic">*</asp:comparevalidator><asp:regularexpr
essionvalidator id="RegularExpressionValidator1"
runat="server" ControlToValidate="txtEmailAddress"

ErrorMessage="Invalid Email Address"
Display="Dynamic" ValidationExpression="\w+([-+.]\w+)*@\w+
([-.]\w+)*\.\w+([-.]\w+)
*">*</asp:regularexpressionvalidator><br>
<FONT
color="red">Note: In order to complete the sign up
process, we will need to
send a
confirmation message to the email address you enter
above.</FONT> Be
sure to include
your "@serviceprovider.com" domain.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000" height="24">Confirm Email
Address:
</td>
<td width="297"
bgColor="#000000" height="24"><asp:textbox
id="txtEmailAddress2" Height="20px" Columns="45"
Width="231px" MaxLength="50" Runat="server"

ForeColor="Black"
BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator2" runat="server"
ControlToValidate="txtEmailAddress2"

ErrorMessage="Confirm Email Address must be
entered"
Display="Dynamic">*</asp:requiredfieldvalidator><br>
Please re-enter
your email address.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#000000">Name:
</td>
<td width="297"
bgColor="#000000"><asp:textbox id="txtFirstName"
Height="20px" Width="99px" MaxLength="15" Runat="server"
ForeColor="Black"

BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator3" runat="server"
ControlToValidate="txtFirstName" ErrorMessage="First Name
must be entered."

Display="Dynamic">*</asp:requiredfieldvalidator><a
sp:textbox id="txtLastName" Height="20px" Width="124px"
MaxLength="25" Runat="server" ForeColor="Black"

BackColor="White"></asp:textbox>*

<asp:requiredfieldvalidator
id="RequiredFieldValidator4" runat="server"
ControlToValidate="txtLastName" ErrorMessage="Last Name
must be entered."

Display="Dynamic">*</asp:requiredfieldvalidator><b
r>
First

Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Last Name
</td>
</tr>


<tr>
<td width="161"
bgColor="#000000">&nbsp;
</td>
<td width="297"
bgColor="#000000"><br>
<asp:imagebutton
id="imgbtnContinue" runat="server"
ImageUrl="../Images/button_continue.jpg"></asp:imagebutton
</td>

</tr>
<TR>
<td bgColor="#000000"
colSpan="2"><br>
<FONT
color="red"><B>Note to AOL and CompuServe Members:</B><BR>
Make sure
your Mail Controls are set to receive emails from

www.pcbootycall.com. If you have Internet email
blocked, you will need to
update
your Mail Controls. To make this update, enter the
Keyword "Mail
Controls"
on AOL or CompuServe</FONT>
</td>
</TR>
</table>
</td>
<td width="29"
background="../images/frame_right.jpg" bgColor="#000000"
height="210">&nbsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_bottom_left.jpg"
bgColor="#000000" height="2">&nbsp;</td>
<td width="736"
background="../images/frame_bottom_mid.jpg"
bgColor="#000000" height="2">&nbsp;</td>
<td width="29"
background="../images/frame_bottom_right.jpg"
bgColor="#000000" height="2">&nbsp;</td>
</tr>

</table>

</td>

</tr>

</table>

<!--------------------------------
--------></td>

</tr>

</table>
</td>
<tr>
<!--start
Bottom Footer -->
<td
vAlign="top" align="left" width="100%"
bgColor="#000000"><NAVIGATION:BOTTOM id="Bottom"
runat="server" NAME="Botttom"></NAVIGATION:BOTTOM></td>
<!--end
Bottom Footer --></tr>
</table>
</form>
</font>
</body>
</HTML>


Nov 17 '05 #4

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

Similar topics

9
by: rez | last post by:
I find it rather frustrating that Netscape 4.x is "no longer supported:" http://help.netscape.com/products/client/communicator/reflib.html Same seems true with IE. How am I ever supposed to...
7
by: AnnMarie | last post by:
My JavaScript Form Validation doesn't work at all in Netscape, but it works fine in IE. I made some of the suggested changes which enabled it to work in IE. I couldn't make all the changes...
2
by: lmeng | last post by:
Hi, I am new to this Forum. Thanks in advance for any kind help. In the following HTML code, when I change the value of one text field then click "Modify" button, if the validation fails a...
5
by: Do | last post by:
Hi, Has anybody run into problems with Page.IsValid? My errors show up when the fields aren't filled correctly, but my processing continues even if the page is invalid. I leave name and...
7
by: David Laub | last post by:
I have stumbled across various Netscape issues, none of which appear to be solvable by tweaking the clientTarget or targetSchema properties. At this point, I'm not even interested in "solving"...
2
by: TIBM | last post by:
Hi. I've posted this question on another newsgroup, but I haven't received any answers.. I have a login page where users input userID and password and click a Login button. Before calling the ...
6
by: hansiman | last post by:
I'm having trouble getting the required field validator to work. I can still save the row in the datagrid... I can't see what I'm doing wrong. <asp:TemplateColumn SortExpression="c.Password"...
2
by: pmud | last post by:
Hi, I have an ASP.Net web page . The page was working fine until I added a required field field validator. My page has a link button which takes the user to another page, a submit button which...
3
by: Kivak Wolf | last post by:
Hi, Could someone give me a quick review of how to use the required field Validator? I'm completely at a loss, and MSDN does not help one bit. =/ Basically all I want done is to make sure that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.