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

Form no longer submits - client validator problem?

I'm going back to a previous asp.net (C#) web project after a few months of
inactivity and my first form, the login, won't submit. I ran with the
debugger and still can't see how to resolve this. I am developing with
VS2003 and on Windows 2000 Server and have all of the service packs for .NET
and Windows. The application is running on an intranet and I'm running this
test with IE6. Javascript is functional.

The logon form has text fields for userid and password with a submit button.
The form doesn't submit either by pressing the submit button or by using the
enter key. This worked fine a few months ago.

If I set the page's ClientTarget property to DownLevel, which bypasses the
client-side validation for required fields completely, the form works. I
made sure the latest WebUIValidation.js is in the
C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_43 22\ directory by comparing
to the base files in
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\ASP.NET ClientFiles\ . I also
cleared out the temporary files under the v1.1.4322 directory.

The event handlers are still in the InitializeComponent so my events haven't
been wiped, i.e. I still have a "this.BtnSubmit.Click += new
System.EventHandler(this.BtnSubmit_Click);" line in the source. The submit
button does attempt to submit the form.

The form has two fields, user and password, plus a submit button. The
client-side validation still works correctly. If I leave a field blank the
errors show in the validation summary as I'd expect and are cleared if I
fill in the user and password fields as they should be prior to submitting
if the client side validation succeeds.

I added a break to the form tag line in the debugger. The form tag in the
generated html looks like so:

<form name="logon" method="post"
action="logon.aspx?ReturnUrl=%2ffsp%2fdefault.aspx " language="javascript"
onsubmit="if (!ValidatorOnSubmit()) return false;" id="logon">

I added a break to the generated ValidatorOnSubmit() function which looks
like so:

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
return ValidatorCommonOnSubmit();
}
return true;
}

This is returning TRUE but the form still doesn't submit. The
ValidatorOnSubmit and onsubmit inline code were generated and not explicitly
created by me.

Other webs on the same development server still work. I tried deleting and
creating the application in the IIS Manager but that didn't change the
behavior.

The form's onsubmit="if (!ValidatorOnSubmit()) return false;" doesn't
explicitly return TRUE but this shouldn't matter.

Can anyone think of anything else I can check to see what is causing the
problem now?

Thanks for any help you can provide.

Bill
Nov 19 '05 #1
2 2086
> VS2003 and on Windows 2000 Server and have all of the service packs for
.NET
The service pack reference makes me think of this:

BUG: The Submit button on ASP.NET pages does not work after you install the
..NET Framework 1.1 Service Pack 1

http://support.microsoft.com/default...b;en-us;889877

"Wysiwyg" <wy*****@xmissionNSPAM.com> wrote in message
news:d4**********@news.xmission.com... I'm going back to a previous asp.net (C#) web project after a few months
of
inactivity and my first form, the login, won't submit. I ran with the
debugger and still can't see how to resolve this. I am developing with
VS2003 and on Windows 2000 Server and have all of the service packs for
.NET
and Windows. The application is running on an intranet and I'm running
this
test with IE6. Javascript is functional.

The logon form has text fields for userid and password with a submit
button.
The form doesn't submit either by pressing the submit button or by using
the
enter key. This worked fine a few months ago.

If I set the page's ClientTarget property to DownLevel, which bypasses the
client-side validation for required fields completely, the form works. I
made sure the latest WebUIValidation.js is in the
C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_43 22\ directory by
comparing
to the base files in
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\ASP.NET ClientFiles\ . I also
cleared out the temporary files under the v1.1.4322 directory.

The event handlers are still in the InitializeComponent so my events
haven't
been wiped, i.e. I still have a "this.BtnSubmit.Click += new
System.EventHandler(this.BtnSubmit_Click);" line in the source. The submit
button does attempt to submit the form.

The form has two fields, user and password, plus a submit button. The
client-side validation still works correctly. If I leave a field blank the
errors show in the validation summary as I'd expect and are cleared if I
fill in the user and password fields as they should be prior to submitting
if the client side validation succeeds.

I added a break to the form tag line in the debugger. The form tag in the
generated html looks like so:

<form name="logon" method="post"
action="logon.aspx?ReturnUrl=%2ffsp%2fdefault.aspx " language="javascript"
onsubmit="if (!ValidatorOnSubmit()) return false;" id="logon">

I added a break to the generated ValidatorOnSubmit() function which looks
like so:

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
return ValidatorCommonOnSubmit();
}
return true;
}

This is returning TRUE but the form still doesn't submit. The
ValidatorOnSubmit and onsubmit inline code were generated and not
explicitly
created by me.

Other webs on the same development server still work. I tried deleting and
creating the application in the IIS Manager but that didn't change the
behavior.

The form's onsubmit="if (!ValidatorOnSubmit()) return false;" doesn't
explicitly return TRUE but this shouldn't matter.

Can anyone think of anything else I can check to see what is causing the
problem now?

Thanks for any help you can provide.

Bill

Nov 19 '05 #2
Thanks, that did the job. I copied the scripts manually but that didn't do
the trick for some reason.

I ran "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet _regiis.exe -c" and
that did the job.

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
VS2003 and on Windows 2000 Server and have all of the service packs for
.NET
The service pack reference makes me think of this:

BUG: The Submit button on ASP.NET pages does not work after you install

the .NET Framework 1.1 Service Pack 1

http://support.microsoft.com/default...b;en-us;889877

"Wysiwyg" <wy*****@xmissionNSPAM.com> wrote in message
news:d4**********@news.xmission.com...
I'm going back to a previous asp.net (C#) web project after a few months
of
inactivity and my first form, the login, won't submit. I ran with the
debugger and still can't see how to resolve this. I am developing with
VS2003 and on Windows 2000 Server and have all of the service packs for
.NET
and Windows. The application is running on an intranet and I'm running
this
test with IE6. Javascript is functional.
[snip] Can anyone think of anything else I can check to see what is causing the
problem now?

Thanks for any help you can provide.

Bill


Nov 19 '05 #3

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

Similar topics

2
by: martin de vroom | last post by:
Hi, I have a web page that opens a modal dialog (client side) in the following manner onclick="window.showModalDialog('/dialog.asp',null,'dialogHeight: 200px; dialogWidth: 400px; dialogTop:...
7
by: Randell D. | last post by:
Folks, I am working on a contact db using PHP and MySQL. My results so far outputs a slimed down version of records to the browser. I would like to implement a method whereby the user can...
3
by: Shabam | last post by:
I know that dotnet allows for form field validation. However I'm looking to customize the error message display and am wondering if it's possible to do what I need. Example: Suppose in a...
5
by: Phil Powell | last post by:
I cannot fathom this one.. for some cracked reason, one of my forms is totally OK and the other is apparently nonexistent according to both HTML and Javascript. The second form never submits...
4
by: Jiho Han | last post by:
What is the best way to check whether the page is simply a postback or the form has been submit with the intention of doing something? In the olden days, I used to check for a form field name...
4
by: Samuel Hon | last post by:
Hi I'm building a custom control which basically takes data from the user and then submits it. I would use the validator controls but if I understand correctly (I've been working with .Net for 2...
4
by: Mark Parter | last post by:
I have a GridView control which contains a number of textbox controls. Each textbox, has 2 validators assigned to it; a required field and a compare validator (data type integer compare). These...
18
by: Axel Dahmen | last post by:
Hi, trying to submit an ASPX form using the key (using IE6) the page is not submitted in my web project. Trying to debug the pages' JavaScript code I noticed that there's some ASP.NET client...
19
by: klenwell | last post by:
Another request for comments here. I'd like to accomplish something like the scheme outlined at this page here: http://tinyurl.com/3dtcdr In a nutshell, the form uses javascript to hash...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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.