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

dynamic validators break explorer

how do i stop the dynamic validators from breaking explorer
if i use a dynamic validator and move to a different control it breaks
explorer and i can type in the page when i'm not supposed to. thank you.
Nov 19 '05 #1
7 1869
Abraham,

What do you mean by it breaks explorer? If you could give a more detailed
explanation of what you're doing and what error is occurring it would be
much easier to help.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
how do i stop the dynamic validators from breaking explorer
if i use a dynamic validator and move to a different control it breaks
explorer and i can type in the page when i'm not supposed to. thank you.

Nov 19 '05 #2
try this code and watch it break :)

<%@ Page Language="c#" %>
<html>
<head>
<title>Login</title>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form id="frmLogin" runat="server">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right">Employee ID:</td>
<td><asp:TextBox ID="tbEmpId" runat="server" MaxLength="3" /></td>
<td><asp:RequiredFieldValidator ID="rfvEmpId" runat="server"
ControlToValidate="tbEmpId" CssClass="texterror" Display="Dynamic"
ErrorMessage="Employee ID is required." /></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"
/></td>
<td><asp:RequiredFieldValidator ID="rfvPassword" runat="server"
ControlToValidate="tbPassword" CssClass="texterror" Display="Dynamic"
ErrorMessage="Password is required." /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

to make it break, just type something in employee id then click on the
password text box. the cursor jumps near the semi colon and you can type on
the page
"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:Ob**************@TK2MSFTNGP11.phx.gbl...
Abraham,

What do you mean by it breaks explorer? If you could give a more detailed
explanation of what you're doing and what error is occurring it would be
much easier to help.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
how do i stop the dynamic validators from breaking explorer
if i use a dynamic validator and move to a different control it breaks
explorer and i can type in the page when i'm not supposed to. thank you.


Nov 19 '05 #3
Abraham,

Two things:

1) It didn't break for me. This makes me suspect that it has to do with your
style sheet. Since you didn't include that I can't see what you're setting
in the CssClass setting texterror. I suspect that is where the problem is.

2) As a side note I noticed that you put a table around your form tags. You
really should put all code you are adding to the page inside of the form
tags.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
try this code and watch it break :)

<%@ Page Language="c#" %>
<html>
<head>
<title>Login</title>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form id="frmLogin" runat="server">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right">Employee ID:</td>
<td><asp:TextBox ID="tbEmpId" runat="server" MaxLength="3" /></td>
<td><asp:RequiredFieldValidator ID="rfvEmpId" runat="server"
ControlToValidate="tbEmpId" CssClass="texterror" Display="Dynamic"
ErrorMessage="Employee ID is required." /></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"
/></td>
<td><asp:RequiredFieldValidator ID="rfvPassword" runat="server"
ControlToValidate="tbPassword" CssClass="texterror" Display="Dynamic"
ErrorMessage="Password is required." /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

to make it break, just type something in employee id then click on the
password text box. the cursor jumps near the semi colon and you can type
on the page
"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:Ob**************@TK2MSFTNGP11.phx.gbl...
Abraham,

What do you mean by it breaks explorer? If you could give a more detailed
explanation of what you're doing and what error is occurring it would be
much easier to help.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
how do i stop the dynamic validators from breaking explorer
if i use a dynamic validator and move to a different control it breaks
explorer and i can type in the page when i'm not supposed to. thank you.



Nov 19 '05 #4
sorry, i didn't test the code before i posted it, and i didn't give the
right instructions to break the page:

<%@ Page Language="c#" %>
<html>
<head>
<title>Login</title>
<style type="text/css">
<!--
..texterror {
font-weight: bold;
color: #FF0000;
}
-->
</style>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form id="frmLogin" runat="server">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right">Employee ID:</td>
<td><asp:TextBox ID="tbEmpId" runat="server" MaxLength="3" />
<asp:regularexpressionValidator ID="revEmpId" runat="server"
ControlToValidate="tbEmpId" ErrorMessage="Invalid Employee ID."
ValidationExpression="[\d][\d][\d]" Display="Dynamic" /></td>
<td><asp:RequiredFieldValidator ID="rfvEmpId" runat="server"
ControlToValidate="tbEmpId" CssClass="texterror" Display="Dynamic"
ErrorMessage="Employee ID is required." /></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"
/></td>
<td><asp:RequiredFieldValidator ID="rfvPassword" runat="server"
ControlToValidate="tbPassword" CssClass="texterror" Display="Dynamic"
ErrorMessage="Password is required." /></td>
</tr>
<tr>
<td align="center" colspan="2"><asp:Button ID="btnLogin" runat="server"
Text="btnLogin" /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

to break the page. type a password then click the login button.
this displays the dynamic rfvEmpId. then type an id and click in the
password field. watch the cursor jump near the semi-colon and you can type
on the page :)

thanks for any help you can provide
"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
Abraham,

Two things:

1) It didn't break for me. This makes me suspect that it has to do with
your style sheet. Since you didn't include that I can't see what you're
setting in the CssClass setting texterror. I suspect that is where the
problem is.

2) As a side note I noticed that you put a table around your form tags.
You really should put all code you are adding to the page inside of the
form tags.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
try this code and watch it break :)

<%@ Page Language="c#" %>
<html>
<head>
<title>Login</title>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form id="frmLogin" runat="server">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right">Employee ID:</td>
<td><asp:TextBox ID="tbEmpId" runat="server" MaxLength="3" /></td>
<td><asp:RequiredFieldValidator ID="rfvEmpId" runat="server"
ControlToValidate="tbEmpId" CssClass="texterror" Display="Dynamic"
ErrorMessage="Employee ID is required." /></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"
/></td>
<td><asp:RequiredFieldValidator ID="rfvPassword" runat="server"
ControlToValidate="tbPassword" CssClass="texterror" Display="Dynamic"
ErrorMessage="Password is required." /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

to make it break, just type something in employee id then click on the
password text box. the cursor jumps near the semi colon and you can type
on the page
"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:Ob**************@TK2MSFTNGP11.phx.gbl...
Abraham,

What do you mean by it breaks explorer? If you could give a more
detailed explanation of what you're doing and what error is occurring it
would be much easier to help.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
how do i stop the dynamic validators from breaking explorer
if i use a dynamic validator and move to a different control it breaks
explorer and i can type in the page when i'm not supposed to. thank
you.



Nov 19 '05 #5
Abraham,

Now I'm stumped. I copied the code you provided and ran it, and it runs just
fine...

What browser / os are you testing this with?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
sorry, i didn't test the code before i posted it, and i didn't give the
right instructions to break the page:

<%@ Page Language="c#" %>
<html>
<head>
<title>Login</title>
<style type="text/css">
<!--
.texterror {
font-weight: bold;
color: #FF0000;
}
-->
</style>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form id="frmLogin" runat="server">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right">Employee ID:</td>
<td><asp:TextBox ID="tbEmpId" runat="server" MaxLength="3" />
<asp:regularexpressionValidator ID="revEmpId" runat="server"
ControlToValidate="tbEmpId" ErrorMessage="Invalid Employee ID."
ValidationExpression="[\d][\d][\d]" Display="Dynamic" /></td>
<td><asp:RequiredFieldValidator ID="rfvEmpId" runat="server"
ControlToValidate="tbEmpId" CssClass="texterror" Display="Dynamic"
ErrorMessage="Employee ID is required." /></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"
/></td>
<td><asp:RequiredFieldValidator ID="rfvPassword" runat="server"
ControlToValidate="tbPassword" CssClass="texterror" Display="Dynamic"
ErrorMessage="Password is required." /></td>
</tr>
<tr>
<td align="center" colspan="2"><asp:Button ID="btnLogin" runat="server"
Text="btnLogin" /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

to break the page. type a password then click the login button.
this displays the dynamic rfvEmpId. then type an id and click in the
password field. watch the cursor jump near the semi-colon and you can type
on the page :)

thanks for any help you can provide
"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
Abraham,

Two things:

1) It didn't break for me. This makes me suspect that it has to do with
your style sheet. Since you didn't include that I can't see what you're
setting in the CssClass setting texterror. I suspect that is where the
problem is.

2) As a side note I noticed that you put a table around your form tags.
You really should put all code you are adding to the page inside of the
form tags.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
try this code and watch it break :)

<%@ Page Language="c#" %>
<html>
<head>
<title>Login</title>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form id="frmLogin" runat="server">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right">Employee ID:</td>
<td><asp:TextBox ID="tbEmpId" runat="server" MaxLength="3" /></td>
<td><asp:RequiredFieldValidator ID="rfvEmpId" runat="server"
ControlToValidate="tbEmpId" CssClass="texterror" Display="Dynamic"
ErrorMessage="Employee ID is required." /></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"
/></td>
<td><asp:RequiredFieldValidator ID="rfvPassword" runat="server"
ControlToValidate="tbPassword" CssClass="texterror" Display="Dynamic"
ErrorMessage="Password is required." /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

to make it break, just type something in employee id then click on the
password text box. the cursor jumps near the semi colon and you can type
on the page
"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:Ob**************@TK2MSFTNGP11.phx.gbl...
Abraham,

What do you mean by it breaks explorer? If you could give a more
detailed explanation of what you're doing and what error is occurring
it would be much easier to help.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
> how do i stop the dynamic validators from breaking explorer
> if i use a dynamic validator and move to a different control it breaks
> explorer and i can type in the page when i'm not supposed to. thank
> you.
>



Nov 19 '05 #6
i don't know why you can't get it to break. i'm using ie 6 and asp.net 2

"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:eq**************@TK2MSFTNGP14.phx.gbl...
Abraham,

Now I'm stumped. I copied the code you provided and ran it, and it runs
just fine...

What browser / os are you testing this with?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
sorry, i didn't test the code before i posted it, and i didn't give the
right instructions to break the page:

<%@ Page Language="c#" %>
<html>
<head>
<title>Login</title>
<style type="text/css">
<!--
.texterror {
font-weight: bold;
color: #FF0000;
}
-->
</style>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form id="frmLogin" runat="server">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right">Employee ID:</td>
<td><asp:TextBox ID="tbEmpId" runat="server" MaxLength="3" />
<asp:regularexpressionValidator ID="revEmpId" runat="server"
ControlToValidate="tbEmpId" ErrorMessage="Invalid Employee ID."
ValidationExpression="[\d][\d][\d]" Display="Dynamic" /></td>
<td><asp:RequiredFieldValidator ID="rfvEmpId" runat="server"
ControlToValidate="tbEmpId" CssClass="texterror" Display="Dynamic"
ErrorMessage="Employee ID is required." /></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"
/></td>
<td><asp:RequiredFieldValidator ID="rfvPassword" runat="server"
ControlToValidate="tbPassword" CssClass="texterror" Display="Dynamic"
ErrorMessage="Password is required." /></td>
</tr>
<tr>
<td align="center" colspan="2"><asp:Button ID="btnLogin" runat="server"
Text="btnLogin" /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

to break the page. type a password then click the login button.
this displays the dynamic rfvEmpId. then type an id and click in the
password field. watch the cursor jump near the semi-colon and you can
type on the page :)

thanks for any help you can provide
"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
Abraham,

Two things:

1) It didn't break for me. This makes me suspect that it has to do with
your style sheet. Since you didn't include that I can't see what you're
setting in the CssClass setting texterror. I suspect that is where the
problem is.

2) As a side note I noticed that you put a table around your form tags.
You really should put all code you are adding to the page inside of the
form tags.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
try this code and watch it break :)

<%@ Page Language="c#" %>
<html>
<head>
<title>Login</title>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form id="frmLogin" runat="server">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right">Employee ID:</td>
<td><asp:TextBox ID="tbEmpId" runat="server" MaxLength="3" /></td>
<td><asp:RequiredFieldValidator ID="rfvEmpId" runat="server"
ControlToValidate="tbEmpId" CssClass="texterror" Display="Dynamic"
ErrorMessage="Employee ID is required." /></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"
/></td>
<td><asp:RequiredFieldValidator ID="rfvPassword" runat="server"
ControlToValidate="tbPassword" CssClass="texterror" Display="Dynamic"
ErrorMessage="Password is required." /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

to make it break, just type something in employee id then click on the
password text box. the cursor jumps near the semi colon and you can
type on the page
"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:Ob**************@TK2MSFTNGP11.phx.gbl...
> Abraham,
>
> What do you mean by it breaks explorer? If you could give a more
> detailed explanation of what you're doing and what error is occurring
> it would be much easier to help.
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzsche
> "Abraham Luna" <ab*@rdk.com> wrote in message
> news:u5**************@TK2MSFTNGP11.phx.gbl...
>> how do i stop the dynamic validators from breaking explorer
>> if i use a dynamic validator and move to a different control it
>> breaks explorer and i can type in the page when i'm not supposed to.
>> thank you.
>>
>
>



Nov 19 '05 #7
Hmmm,

I'm using the same.

The only difference that I can see is that I'm pasting your form code into a
Visual Studio.net page so all of my <%@ Page Language="c#" %> code is there.
Maybe you just need to add the other paramaters to that?

<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false"
Inherits="LabCSharpWeb.WebForm1" %>

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:OL**************@TK2MSFTNGP14.phx.gbl...
i don't know why you can't get it to break. i'm using ie 6 and asp.net 2

"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:eq**************@TK2MSFTNGP14.phx.gbl...
Abraham,

Now I'm stumped. I copied the code you provided and ran it, and it runs
just fine...

What browser / os are you testing this with?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
sorry, i didn't test the code before i posted it, and i didn't give the
right instructions to break the page:

<%@ Page Language="c#" %>
<html>
<head>
<title>Login</title>
<style type="text/css">
<!--
.texterror {
font-weight: bold;
color: #FF0000;
}
-->
</style>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form id="frmLogin" runat="server">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right">Employee ID:</td>
<td><asp:TextBox ID="tbEmpId" runat="server" MaxLength="3" />
<asp:regularexpressionValidator ID="revEmpId" runat="server"
ControlToValidate="tbEmpId" ErrorMessage="Invalid Employee ID."
ValidationExpression="[\d][\d][\d]" Display="Dynamic" /></td>
<td><asp:RequiredFieldValidator ID="rfvEmpId" runat="server"
ControlToValidate="tbEmpId" CssClass="texterror" Display="Dynamic"
ErrorMessage="Employee ID is required." /></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"
/></td>
<td><asp:RequiredFieldValidator ID="rfvPassword" runat="server"
ControlToValidate="tbPassword" CssClass="texterror" Display="Dynamic"
ErrorMessage="Password is required." /></td>
</tr>
<tr>
<td align="center" colspan="2"><asp:Button ID="btnLogin"
runat="server" Text="btnLogin" /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

to break the page. type a password then click the login button.
this displays the dynamic rfvEmpId. then type an id and click in the
password field. watch the cursor jump near the semi-colon and you can
type on the page :)

thanks for any help you can provide
"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
Abraham,

Two things:

1) It didn't break for me. This makes me suspect that it has to do with
your style sheet. Since you didn't include that I can't see what you're
setting in the CssClass setting texterror. I suspect that is where the
problem is.

2) As a side note I noticed that you put a table around your form tags.
You really should put all code you are adding to the page inside of the
form tags.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Abraham Luna" <ab*@rdk.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
> try this code and watch it break :)
>
> <%@ Page Language="c#" %>
> <html>
> <head>
> <title>Login</title>
> </head>
> <body>
> <table width="100%" height="100%" border="0" cellpadding="0"
> cellspacing="0">
> <tr>
> <td align="center"><table border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td><form id="frmLogin" runat="server">
> <table border="0" cellspacing="0" cellpadding="3">
> <tr>
> <td align="right">Employee ID:</td>
> <td><asp:TextBox ID="tbEmpId" runat="server" MaxLength="3" /></td>
> <td><asp:RequiredFieldValidator ID="rfvEmpId" runat="server"
> ControlToValidate="tbEmpId" CssClass="texterror" Display="Dynamic"
> ErrorMessage="Employee ID is required." /></td>
> </tr>
> <tr>
> <td align="right">Password:</td>
> <td><asp:TextBox ID="tbPassword" runat="server" TextMode="Password"
> /></td>
> <td><asp:RequiredFieldValidator ID="rfvPassword" runat="server"
> ControlToValidate="tbPassword" CssClass="texterror" Display="Dynamic"
> ErrorMessage="Password is required." /></td>
> </tr>
> </table>
> </form></td>
> </tr>
> </table></td>
> </tr>
> </table>
> </body>
> </html>
>
> to make it break, just type something in employee id then click on the
> password text box. the cursor jumps near the semi colon and you can
> type on the page
>
>
> "S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote
> in message news:Ob**************@TK2MSFTNGP11.phx.gbl...
>> Abraham,
>>
>> What do you mean by it breaks explorer? If you could give a more
>> detailed explanation of what you're doing and what error is occurring
>> it would be much easier to help.
>>
>> --
>> Sincerely,
>>
>> S. Justin Gengo, MCP
>> Web Developer / Programmer
>>
>> www.aboutfortunate.com
>>
>> "Out of chaos comes order."
>> Nietzsche
>> "Abraham Luna" <ab*@rdk.com> wrote in message
>> news:u5**************@TK2MSFTNGP11.phx.gbl...
>>> how do i stop the dynamic validators from breaking explorer
>>> if i use a dynamic validator and move to a different control it
>>> breaks explorer and i can type in the page when i'm not supposed to.
>>> thank you.
>>>
>>
>>
>
>



Nov 19 '05 #8

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

Similar topics

1
by: JZ | last post by:
I use Webware and FormKit. I have a problem with dynamic added field to the form. The following code creates one input field and two submit buttons. I would like to add more (up to 4) input fields...
1
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
0
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
3
by: Masoud Amiri | last post by:
Hi every one I wanted to use RegularExpressionValidator and other validators in my asp.net pages. when I use internet explorer as a browser it works fine but when I use netscape or other...
1
by: Nathan Sokalski | last post by:
When testing a form of mine which uses RequiredFieldValidators that have the Display property set to "Dynamic" the ErrorMessage property is automatically removed when an entry is completely typed...
2
by: Papanii Okai | last post by:
I have a discussion forum page where, a user can add a new topic thread to the list of threads. Now to ensure that a user supplies a title and content to this form, I have two client side...
0
by: Mike Collins | last post by:
I have a form where I create dynamic controls at runtime. With this, I am adding a dynamic required field validators to each control as needed, but the validators are not firing when I click...
2
by: Mike Collins | last post by:
I have a form where I create dynamic controls at runtime. With this, I am adding a dynamic required field validator to each control as needed, but the validators are not firing when I click submit....
0
by: Eniac | last post by:
Hi, I've been working on a custom user control that needs to be modified and the validation is causing me headaches. The control used to generate a table of 4 rows x 7 columns to display all...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...

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.