dotNET 1.1 SP1 sometimes stops buttons from posting if validators have EnableClientScript=true (the

M

Mark Derman

Hi All

OK, this one has me baffled and infuriated!?!?!?!

I've unfortunately upgraded our W2003 server to dotNET 1.1 SP1 and it
appears that validation controls with EnableClientScript=true (the
default) are stopping pages which pass client-side validation from
posting back from buttons if the browser is Internet Explorer 6
(sometimes)

Anyone seen this problem?

I coudn't replicate the problem on my dev box for a day, and now my
dev box is showing this behaviour. However our live server is suddenly
not doing this anymore.

The weird thing is that the rendered HTML output is identical between
dev box and live server, yet IE is behaving differently??? Not sure if
this a client or server issue?

I've double checked the WebUIValidation.js file is the latest (and run
aspnet_regiis). I thought that is was the previous version of
WebUIValidation.js being cached at proxies or in IE that was casuing
the problem, but I now see that WebUIValidation.js didn't change in
SP1 so it can't be this.

Example form
--------------------------------------------------------
<%@ Page Language="vb" AutoEventWireup="false"
Inherits="System.Web.UI.Page"%>
<HTML>
<body>
<form method="post" id="form2" runat="server">
Textbox <asp:textbox class="CInput" maxlength="50" id="SeasonName"
Runat=server />
<br>
Required Field Validator
<asp:RequiredFieldValidator id=RequiredFieldValidator1
runat="server" ErrorMessage="RequiredFieldValidator"
ControlToValidate="SeasonName"
EnableClientScript="true"></asp:RequiredFieldValidator>
<br>
<asp:Button id="Button1" class=cbutton runat="server" Text="Submit"
/></P>
</form>
</body>
</HTML>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,839
Latest member
MartinaBur

Latest Threads

Top