A
Andrew Winn
Hi,
Got a problem with the required validation control not
posting back after a valid page is requested to be
submitted?
I have a login page with the usual Username and Password
fields and a login button. Validation control checks that
there is something in the fields before allowing a post
back.
Problem only occurs on my Test Server (it works fine on
my development server - both are Windows 2000 Advanced
Server - Test is SP4 Dev is SP3). When I click Login with
the fields missing it detects this and displays an error;
however when I complete the fields and click login
nothing happens (or appears too).
I have traced the code through to the JavaScript file
WebUIValidation.js. ASP.NET puts an onSubmit event
handler on the form tag which calls
ValidatorCommonOnSubmit which is in the
WebUIValidation.js file.
function ValidatorCommonOnSubmit() {
event.returnValue = !Page_BlockSubmit;
Page_BlockSubmit = false;
}
On both the Test and Development servers it puts a true
in the event.returnValue, but the Test server does submit
and therefore it doesn't go into the server side code for
the login button's onClick event.
I have had a similar problem in the past and removed
Smart Navigation which did the trick, however this time
it makes no difference if Smart Navigation is true or
false.
Any advice would be much appreciated
Regards,
Andrew
Got a problem with the required validation control not
posting back after a valid page is requested to be
submitted?
I have a login page with the usual Username and Password
fields and a login button. Validation control checks that
there is something in the fields before allowing a post
back.
Problem only occurs on my Test Server (it works fine on
my development server - both are Windows 2000 Advanced
Server - Test is SP4 Dev is SP3). When I click Login with
the fields missing it detects this and displays an error;
however when I complete the fields and click login
nothing happens (or appears too).
I have traced the code through to the JavaScript file
WebUIValidation.js. ASP.NET puts an onSubmit event
handler on the form tag which calls
ValidatorCommonOnSubmit which is in the
WebUIValidation.js file.
function ValidatorCommonOnSubmit() {
event.returnValue = !Page_BlockSubmit;
Page_BlockSubmit = false;
}
On both the Test and Development servers it puts a true
in the event.returnValue, but the Test server does submit
and therefore it doesn't go into the server side code for
the login button's onClick event.
I have had a similar problem in the past and removed
Smart Navigation which did the trick, however this time
it makes no difference if Smart Navigation is true or
false.
Any advice would be much appreciated
Regards,
Andrew