473,756 Members | 3,482 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="Sig nUpToday2.aspx. vb"
Inherits="PCBC. SignUpToday2" EnableViewState ="True"%>
<%@ Register TagPrefix="Navi gation" TagName="Bottom "
Src="..\bottom. ascx" %>
<%@ Register TagPrefix="Navi gation" TagName="Left"
Src="..\left.as cx" %>
<%@ Register TagPrefix="Navi gation" TagName="Top"
Src="..\top.asc x" %>
<%@ OutputCache Duration="60" VaryByParam="*"
VaryByCustom="b rowser" %>
<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="#00000 0"><NAVIGATION: TOP id="Top" runat="server"
NAME="Top"></NAVIGATION:TOP> </td>
<!--end
Top Nav --></tr>
<tr>
<td
vAlign="top" align="left" bgColor="#00000 0" 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="#00000 0" align="left"
valign="top" width="108">

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

<!--</td>-->

<td bgColor="#00000 0">

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

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

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

<td
bgColor="#00000 0" height="18"><fo nt face="Tahoma"
size="3"><b>

</b></font>

</td>

</tr>

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

<td
bgColor="#00000 0" height="18"><fo nt face="Tahoma"
size="3"><b>


</b></font>

</td>

</tr>

<tr>

<td vAlign="top"
align="center" width="74%" bgColor="#00000 0" 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="#00000 0" height="15">&nb sp;</td>
<td width="736"
background="../images/frame_top_mid.j pg"
bgColor="#00000 0" height="15">&nb sp;</td>
<td width="29"
background="../images/frame_top_right .jpg"
bgColor="#00000 0" height="15">&nb sp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_left.jpg" bgColor="#00000 0"
height="210">&n bsp;</td>
<td vAlign="middle" align="center" width="736"
bgColor="#00000 0" height="210">
<table cellSpacing="0" cellPadding="0"
width="100%" border="0">
<tr>
<td bgColor="#00000 0"
colSpan="2">Ple ase 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:validation summary id="ValidationS ummary1"
runat="server" ShowMessageBox= "True" HeaderText="<b> The
following errors were detected:</b>"

Height="24px" Width="430px"
ShowSummary="Fa lse"></asp:validations ummary></td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0" height="27">Ema il Address:
</td>
<td bgColor="#00000 0"
height="27"><as p:textbox id="txtEmailAdd ress"
Height="20px" Columns="45" Width="231px" MaxLength="50"
Runat="server"

ForeColor="Blac k"
BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator1" runat="server"
ControlToValida te="txtEmailAdd ress"

ErrorMessage="E mail Address must be entered.">
*</asp:requiredfie ldvalidator><as p:comparevalida to
r id="CompareVali dator1" runat="server"
ControlToValida te="txtEmailAdd ress2" ErrorMessage="E mail
Addresses must match."

ControlToCompar e="txtEmailAddr ess"
Display="Dynami c">*</asp:comparevali dator><asp:regu larexpr
essionvalidator id="RegularExpr essionValidator 1"
runat="server" ControlToValida te="txtEmailAdd ress"

ErrorMessage="I nvalid Email Address"
Display="Dynami c" ValidationExpre ssion="\w+([-+.]\w+)*@\w+
([-.]\w+)*\.\w+([-.]\w+)
*">*</asp:regularexpr essionvalidator ><br>
<FONT
color="red">Not e: 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 "@serviceprovid er.com" domain.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0" height="24">Con firm Email
Address:
</td>
<td width="297"
bgColor="#00000 0" height="24"><as p:textbox
id="txtEmailAdd ress2" Height="20px" Columns="45"
Width="231px" MaxLength="50" Runat="server"

ForeColor="Blac k"
BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator2" runat="server"
ControlToValida te="txtEmailAdd ress2"

ErrorMessage="C onfirm Email Address must be
entered"
Display="Dynami c">*</asp:requiredfie ldvalidator><br >
Please re-enter
your email address.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0">Name:
</td>
<td width="297"
bgColor="#00000 0"><asp:text box id="txtFirstNam e"
Height="20px" Width="99px" MaxLength="15" Runat="server"
ForeColor="Blac k"

BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator3" runat="server"
ControlToValida te="txtFirstNam e" ErrorMessage="F irst Name
must be entered."

Display="Dynami c">*</asp:requiredfie ldvalidator><a
sp:textbox id="txtLastName " Height="20px" Width="124px"
MaxLength="25" Runat="server" ForeColor="Blac k"

BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator4" runat="server"
ControlToValida te="txtLastName " ErrorMessage="L ast Name
must be entered."

Display="Dynami c">*</asp:requiredfie ldvalidator><b
r>
First

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


<tr>
<td width="161"
bgColor="#00000 0">&nbsp;
</td>
<td width="297"
bgColor="#00000 0"><br>
<asp:imagebutto n
id="imgbtnConti nue" runat="server"
ImageUrl="../Images/button_continue .jpg"></asp:imagebutton
</td>

</tr>
<TR>
<td bgColor="#00000 0"
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="#00000 0"
height="210">&n bsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_bottom_le ft.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
<td width="736"
background="../images/frame_bottom_mi d.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
<td width="29"
background="../images/frame_bottom_ri ght.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
</tr>

</table>

</td>

</tr>

</table>

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

</tr>

</table>
</td>
<tr>
<!--start
Bottom Footer -->
<td
vAlign="top" align="left" width="100%"
bgColor="#00000 0"><NAVIGATION: BOTTOM id="Bottom"
runat="server" NAME="Botttom"> </NAVIGATION:BOTT OM></td>
<!--end
Bottom Footer --></tr>
</table>
</form>
</font>
</body>
</HTML>
Nov 17 '05 #1
3 2786
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****@aspallia nce.com

"Rick" <ri********@hot mail.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="Sig nUpToday2.aspx. vb"
Inherits="PCBC. SignUpToday2" EnableViewState ="True"%>
<%@ Register TagPrefix="Navi gation" TagName="Bottom "
Src="..\bottom. ascx" %>
<%@ Register TagPrefix="Navi gation" TagName="Left"
Src="..\left.as cx" %>
<%@ Register TagPrefix="Navi gation" TagName="Top"
Src="..\top.asc x" %>
<%@ OutputCache Duration="60" VaryByParam="*"
VaryByCustom="b rowser" %>
<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="#00000 0"><NAVIGATION: TOP id="Top" runat="server"
NAME="Top"></NAVIGATION:TOP> </td>
<!--end
Top Nav --></tr>
<tr>
<td
vAlign="top" align="left" bgColor="#00000 0" 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="#00000 0" align="left"
valign="top" width="108">

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

<!--</td>-->

<td bgColor="#00000 0">

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

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

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

<td
bgColor="#00000 0" height="18"><fo nt face="Tahoma"
size="3"><b>

</b></font>

</td>

</tr>

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

<td
bgColor="#00000 0" height="18"><fo nt face="Tahoma"
size="3"><b>


</b></font>

</td>

</tr>

<tr>

<td vAlign="top"
align="center" width="74%" bgColor="#00000 0" 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="#00000 0" height="15">&nb sp;</td>
<td width="736"
background="../images/frame_top_mid.j pg"
bgColor="#00000 0" height="15">&nb sp;</td>
<td width="29"
background="../images/frame_top_right .jpg"
bgColor="#00000 0" height="15">&nb sp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_left.jpg" bgColor="#00000 0"
height="210">&n bsp;</td>
<td vAlign="middle" align="center" width="736"
bgColor="#00000 0" height="210">
<table cellSpacing="0" cellPadding="0"
width="100%" border="0">
<tr>
<td bgColor="#00000 0"
colSpan="2">Ple ase 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:validation summary id="ValidationS ummary1"
runat="server" ShowMessageBox= "True" HeaderText="<b> The
following errors were detected:</b>"

Height="24px" Width="430px"
ShowSummary="Fa lse"></asp:validations ummary></td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0" height="27">Ema il Address:
</td>
<td bgColor="#00000 0"
height="27"><as p:textbox id="txtEmailAdd ress"
Height="20px" Columns="45" Width="231px" MaxLength="50"
Runat="server"

ForeColor="Blac k"
BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator1" runat="server"
ControlToValida te="txtEmailAdd ress"

ErrorMessage="E mail Address must be entered.">
*</asp:requiredfie ldvalidator><as p:comparevalida to
r id="CompareVali dator1" runat="server"
ControlToValida te="txtEmailAdd ress2" ErrorMessage="E mail
Addresses must match."

ControlToCompar e="txtEmailAddr ess"
Display="Dynami c">*</asp:comparevali dator><asp:regu larexpr
essionvalidator id="RegularExpr essionValidator 1"
runat="server" ControlToValida te="txtEmailAdd ress"

ErrorMessage="I nvalid Email Address"
Display="Dynami c" ValidationExpre ssion="\w+([-+.]\w+)*@\w+
([-.]\w+)*\.\w+([-.]\w+)
*">*</asp:regularexpr essionvalidator ><br>
<FONT
color="red">Not e: 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 "@serviceprovid er.com" domain.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0" height="24">Con firm Email
Address:
</td>
<td width="297"
bgColor="#00000 0" height="24"><as p:textbox
id="txtEmailAdd ress2" Height="20px" Columns="45"
Width="231px" MaxLength="50" Runat="server"

ForeColor="Blac k"
BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator2" runat="server"
ControlToValida te="txtEmailAdd ress2"

ErrorMessage="C onfirm Email Address must be
entered"
Display="Dynami c">*</asp:requiredfie ldvalidator><br >
Please re-enter
your email address.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0">Name:
</td>
<td width="297"
bgColor="#00000 0"><asp:text box id="txtFirstNam e"
Height="20px" Width="99px" MaxLength="15" Runat="server"
ForeColor="Blac k"

BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator3" runat="server"
ControlToValida te="txtFirstNam e" ErrorMessage="F irst Name
must be entered."

Display="Dynami c">*</asp:requiredfie ldvalidator><a
sp:textbox id="txtLastName " Height="20px" Width="124px"
MaxLength="25" Runat="server" ForeColor="Blac k"

BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator4" runat="server"
ControlToValida te="txtLastName " ErrorMessage="L ast Name
must be entered."

Display="Dynami c">*</asp:requiredfie ldvalidator><b
r>
First

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


<tr>
<td width="161"
bgColor="#00000 0">&nbsp;
</td>
<td width="297"
bgColor="#00000 0"><br>
<asp:imagebutto n
id="imgbtnConti nue" runat="server"
ImageUrl="../Images/button_continue .jpg"></asp:imagebutton
</td>

</tr>
<TR>
<td bgColor="#00000 0"
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="#00000 0"
height="210">&n bsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_bottom_le ft.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
<td width="736"
background="../images/frame_bottom_mi d.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
<td width="29"
background="../images/frame_bottom_ri ght.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
</tr>

</table>

</td>

</tr>

</table>

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

</tr>

</table>
</td>
<tr>
<!--start
Bottom Footer -->
<td
vAlign="top" align="left" width="100%"
bgColor="#00000 0"><NAVIGATION: BOTTOM id="Bottom"
runat="server" NAME="Botttom"> </NAVIGATION:BOTT OM></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********@hot mail.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="Sig nUpToday2.aspx. vb"
Inherits="PCBC. SignUpToday2" EnableViewState ="True"%>
<%@ Register TagPrefix="Navi gation" TagName="Bottom "
Src="..\bottom. ascx" %>
<%@ Register TagPrefix="Navi gation" TagName="Left"
Src="..\left.as cx" %>
<%@ Register TagPrefix="Navi gation" TagName="Top"
Src="..\top.asc x" %>
<%@ OutputCache Duration="60" VaryByParam="*"
VaryByCustom="b rowser" %>
<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="#00000 0"><NAVIGATION: TOP id="Top" runat="server"
NAME="Top"></NAVIGATION:TOP> </td>
<!--end
Top Nav --></tr>
<tr>
<td
vAlign="top" align="left" bgColor="#00000 0" 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="#00000 0" align="left"
valign="top" width="108">

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

<!--</td>-->

<td bgColor="#00000 0">

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

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

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

<td
bgColor="#00000 0" height="18"><fo nt face="Tahoma"
size="3"><b>

</b></font>

</td>

</tr>

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

<td
bgColor="#00000 0" height="18"><fo nt face="Tahoma"
size="3"><b>


</b></font>

</td>

</tr>

<tr>

<td vAlign="top"
align="center" width="74%" bgColor="#00000 0" 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="#00000 0" height="15">&nb sp;</td>
<td width="736"
background="../images/frame_top_mid.j pg"
bgColor="#00000 0" height="15">&nb sp;</td>
<td width="29"
background="../images/frame_top_right .jpg"
bgColor="#00000 0" height="15">&nb sp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_left.jpg" bgColor="#00000 0"
height="210">&n bsp;</td>
<td vAlign="middle" align="center" width="736"
bgColor="#00000 0" height="210">
<table cellSpacing="0" cellPadding="0"
width="100%" border="0">
<tr>
<td bgColor="#00000 0"
colSpan="2">Ple ase 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:validation summary id="ValidationS ummary1"
runat="server" ShowMessageBox= "True" HeaderText="<b> The
following errors were detected:</b>"

Height="24px" Width="430px"
ShowSummary="Fa lse"></asp:validations ummary></td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0" height="27">Ema il Address:
</td>
<td bgColor="#00000 0"
height="27"><as p:textbox id="txtEmailAdd ress"
Height="20px" Columns="45" Width="231px" MaxLength="50"
Runat="server"

ForeColor="Blac k"
BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator1" runat="server"
ControlToValida te="txtEmailAdd ress"

ErrorMessage="E mail Address must be entered.">
*</asp:requiredfie ldvalidator><as p:comparevalida to
r id="CompareVali dator1" runat="server"
ControlToValida te="txtEmailAdd ress2" ErrorMessage="E mail
Addresses must match."

ControlToCompar e="txtEmailAddr ess"
Display="Dynami c">*</asp:comparevali dator><asp:regu larexpr
essionvalidator id="RegularExpr essionValidator 1"
runat="server" ControlToValida te="txtEmailAdd ress"

ErrorMessage="I nvalid Email Address"
Display="Dynami c" ValidationExpre ssion="\w+([-+.]\w+)*@\w+
([-.]\w+)*\.\w+([-.]\w+)
*">*</asp:regularexpr essionvalidator ><br>
<FONT
color="red">Not e: 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 "@serviceprovid er.com" domain.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0" height="24">Con firm Email
Address:
</td>
<td width="297"
bgColor="#00000 0" height="24"><as p:textbox
id="txtEmailAdd ress2" Height="20px" Columns="45"
Width="231px" MaxLength="50" Runat="server"

ForeColor="Blac k"
BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator2" runat="server"
ControlToValida te="txtEmailAdd ress2"

ErrorMessage="C onfirm Email Address must be
entered"
Display="Dynami c">*</asp:requiredfie ldvalidator><br >
Please re-enter
your email address.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0">Name:
</td>
<td width="297"
bgColor="#00000 0"><asp:text box id="txtFirstNam e"
Height="20px" Width="99px" MaxLength="15" Runat="server"
ForeColor="Blac k"

BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator3" runat="server"
ControlToValida te="txtFirstNam e" ErrorMessage="F irst Name
must be entered."

Display="Dynami c">*</asp:requiredfie ldvalidator><a
sp:textbox id="txtLastName " Height="20px" Width="124px"
MaxLength="25" Runat="server" ForeColor="Blac k"

BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator4" runat="server"
ControlToValida te="txtLastName " ErrorMessage="L ast Name
must be entered."

Display="Dynami c">*</asp:requiredfie ldvalidator><b
r>
First

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


<tr>
<td width="161"
bgColor="#00000 0">&nbsp;
</td>
<td width="297"
bgColor="#00000 0"><br>
<asp:imagebutto n
id="imgbtnConti nue" runat="server"
ImageUrl="../Images/button_continue .jpg"></asp:imagebutton
</td>

</tr>
<TR>
<td bgColor="#00000 0"
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="#00000 0"
height="210">&n bsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_bottom_le ft.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
<td width="736"
background="../images/frame_bottom_mi d.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
<td width="29"
background="../images/frame_bottom_ri ght.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
</tr>

</table>

</td>

</tr>

</table>

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

</tr>

</table>
</td>
<tr>
<!--start
Bottom Footer -->
<td
vAlign="top" align="left" width="100%"
bgColor="#00000 0"><NAVIGATION: BOTTOM id="Bottom"
runat="server" NAME="Botttom"> </NAVIGATION:BOTT OM></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.netRem uvThis> wrote in
message news:uJ******** ******@tk2msftn gp13.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********@hot mail.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="Sig nUpToday2.aspx. vb"
Inherits="PCBC. SignUpToday2" EnableViewState ="True"%>
<%@ Register TagPrefix="Navi gation" TagName="Bottom "
Src="..\bottom. ascx" %>
<%@ Register TagPrefix="Navi gation" TagName="Left"
Src="..\left.as cx" %>
<%@ Register TagPrefix="Navi gation" TagName="Top"
Src="..\top.asc x" %>
<%@ OutputCache Duration="60" VaryByParam="*"
VaryByCustom="b rowser" %>
<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="#00000 0"><NAVIGATION: TOP id="Top" runat="server"
NAME="Top"></NAVIGATION:TOP> </td>
<!--end
Top Nav --></tr>
<tr>
<td
vAlign="top" align="left" bgColor="#00000 0" 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="#00000 0" align="left"
valign="top" width="108">

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

<!--</td>-->

<td bgColor="#00000 0">

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

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

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

<td
bgColor="#00000 0" height="18"><fo nt face="Tahoma"
size="3"><b>

</b></font>

</td>

</tr>

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

<td
bgColor="#00000 0" height="18"><fo nt face="Tahoma"
size="3"><b>


</b></font>

</td>

</tr>

<tr>

<td vAlign="top"
align="center" width="74%" bgColor="#00000 0" 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="#00000 0" height="15">&nb sp;</td>
<td width="736"
background="../images/frame_top_mid.j pg"
bgColor="#00000 0" height="15">&nb sp;</td>
<td width="29"
background="../images/frame_top_right .jpg"
bgColor="#00000 0" height="15">&nb sp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_left.jpg" bgColor="#00000 0"
height="210">&n bsp;</td>
<td vAlign="middle" align="center" width="736"
bgColor="#00000 0" height="210">
<table cellSpacing="0" cellPadding="0"
width="100%" border="0">
<tr>
<td bgColor="#00000 0"
colSpan="2">Ple ase 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:validation summary id="ValidationS ummary1"
runat="server" ShowMessageBox= "True" HeaderText="<b> The
following errors were detected:</b>"

Height="24px" Width="430px"
ShowSummary="Fa lse"></asp:validations ummary></td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0" height="27">Ema il Address:
</td>
<td bgColor="#00000 0"
height="27"><as p:textbox id="txtEmailAdd ress"
Height="20px" Columns="45" Width="231px" MaxLength="50"
Runat="server"

ForeColor="Blac k"
BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator1" runat="server"
ControlToValida te="txtEmailAdd ress"

ErrorMessage="E mail Address must be entered.">
*</asp:requiredfie ldvalidator><as p:comparevalida to
r id="CompareVali dator1" runat="server"
ControlToValida te="txtEmailAdd ress2" ErrorMessage="E mail
Addresses must match."

ControlToCompar e="txtEmailAddr ess"
Display="Dynami c">*</asp:comparevali dator><asp:regu larexpr
essionvalidator id="RegularExpr essionValidator 1"
runat="server" ControlToValida te="txtEmailAdd ress"

ErrorMessage="I nvalid Email Address"
Display="Dynami c" ValidationExpre ssion="\w+([-+.]\w+)*@\w+
([-.]\w+)*\.\w+([-.]\w+)
*">*</asp:regularexpr essionvalidator ><br>
<FONT
color="red">Not e: 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 "@serviceprovid er.com" domain.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0" height="24">Con firm Email
Address:
</td>
<td width="297"
bgColor="#00000 0" height="24"><as p:textbox
id="txtEmailAdd ress2" Height="20px" Columns="45"
Width="231px" MaxLength="50" Runat="server"

ForeColor="Blac k"
BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator2" runat="server"
ControlToValida te="txtEmailAdd ress2"

ErrorMessage="C onfirm Email Address must be
entered"
Display="Dynami c">*</asp:requiredfie ldvalidator><br >
Please re-enter
your email address.
</td>
</tr>
<tr>
<td vAlign="top"
width="161" bgColor="#00000 0">Name:
</td>
<td width="297"
bgColor="#00000 0"><asp:text box id="txtFirstNam e"
Height="20px" Width="99px" MaxLength="15" Runat="server"
ForeColor="Blac k"

BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator3" runat="server"
ControlToValida te="txtFirstNam e" ErrorMessage="F irst Name
must be entered."

Display="Dynami c">*</asp:requiredfie ldvalidator><a
sp:textbox id="txtLastName " Height="20px" Width="124px"
MaxLength="25" Runat="server" ForeColor="Blac k"

BackColor="Whit e"></asp:textbox>*

<asp:requiredfi eldvalidator
id="RequiredFie ldValidator4" runat="server"
ControlToValida te="txtLastName " ErrorMessage="L ast Name
must be entered."

Display="Dynami c">*</asp:requiredfie ldvalidator><b
r>
First

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


<tr>
<td width="161"
bgColor="#00000 0">&nbsp;
</td>
<td width="297"
bgColor="#00000 0"><br>
<asp:imagebutto n
id="imgbtnConti nue" runat="server"
ImageUrl="../Images/button_continue .jpg"></asp:imagebutton
</td>

</tr>
<TR>
<td bgColor="#00000 0"
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="#00000 0"
height="210">&n bsp;</td>
</tr>
<tr>
<td width="24"
background="../images/frame_bottom_le ft.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
<td width="736"
background="../images/frame_bottom_mi d.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
<td width="29"
background="../images/frame_bottom_ri ght.jpg"
bgColor="#00000 0" height="2">&nbs p;</td>
</tr>

</table>

</td>

</tr>

</table>

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

</tr>

</table>
</td>
<tr>
<!--start
Bottom Footer -->
<td
vAlign="top" align="left" width="100%"
bgColor="#00000 0"><NAVIGATION: BOTTOM id="Bottom"
runat="server" NAME="Botttom"> </NAVIGATION:BOTT OM></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
2552
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 make my scripts multi-browser, when they don't bother giving me basic documentation?
7
4892
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 because then it didn't work in IE. How can I enable this javascipt form validation to work in Netscape? When I use netscape, none of the alert boxes appear. It submits the form without validating anything.
2
1658
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 message will popup and the cotent of the form should NOT be submitted. (The actual code connects to the database at the backend so I can check if the value is submmited).
5
2422
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 description blank and I do get the error messages. But the code still continues to run the addfolder method from my class. Is there something wrong with this?
7
1852
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" these problems - I'm more interested in isolating them, .i.e. finding a "complete" list of issues. Here's my list of serious issues found so far. By serious, I mean functionality that fails, as opposed to much less serious (albeit annoying) display...
2
1371
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 login functions, I have to check the user ID and the password for invalid data. It works well in IExplorer, but it doesn't show the validation summary (displayed in a Javascript alert box) in Netscape. This is what I have in the asp page: ...
6
2287
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" HeaderText="Password"> <ItemTemplate> <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Password") %>' ID="lblPassword"></asp:Label> </ItemTemplate> <EditItemTemplate>
2
2352
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 takes the values of the text boxes & puts them into an SQL database. After adding the required field validator, when I click any button, (be it submit button ot link button or any other button), it shows the required field validator's TEXT i.e...
3
2715
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 the user enters some text into a field called "txbName" and when they click on the submit button, if they have not entered anything into the field, a Required Field Validator will say "Invalid Name". Thanks,
0
9462
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9886
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9857
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9722
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7259
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.