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

Validation Controls stop working!

Dear All

I have a Windows 2003 Server with IIS6 where the validation controls on
ASP.Net pages no longer work.

I believe it to be specific to the server as if I create an ASP.Net page on
the IIS Server of my Workstation (Win XP) with a text box, button and
required field validator, this works fine. If I create the same page on the
IIS6 Windows 2003 Server the validation control doesn't stop the post. I've
tried different browsers and JavaScript is on!

For example if I have a number of panels in which the visibility is turned
on or off by the button click event this event still fires. The visibility
on the panel where the validation control is situated turns off and the
error message is never seen. If I leave the visibility on that panel alone
then I see the error message but the click event still fires (not much use).

Looking at the code I presume that the validation control generates some
JavaScript which should be called on post. Is it possible that the Win 2003
Server isn't generating that JavaScript?

Anybody come across this before?

Any suggestions?

Martyn Fewtrell
mf*******@networkclub.co.uk
Nov 18 '05 #1
2 3955
You are correct in what you are saying but this is not the problem!

If you have a form split into two parts - lets say contact details on the
first panel and then the enquiry details on the second panel.

Initially the first panel is set to visible = True and then the second panel
to visible = False. When you click the Next button the validation controls
should validate the controls on the first panel before running the click
event on the button i.e. it should stop the click event turning off the
first panel and then turning on the second panel.

This works perfectly on my workstation but if I copy the code onto the
server the validation controls just don't work and the click event still
fires changing the visibility on the forms. However if I disable the
visibility on the first panel i.e. instead of turning one off and one on, I
just turn the second one on then the error messages can be seen on the first
panel.

I therefore conclude that the error messages on the validator controls are
working but the validation control is failing to stop the click event from
following through.

I hope this explains it better!
"Fernando Hunth" <Fe***********@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
Martyn:

I think that it is not a 2003 Problem.
It is true that .Net generates javascript for validations, but if you have
these controls at a container that you set it to Invisible, these controls
never are rendered and sent to client, because when you set the visibility
property on a control, it is never rendered.

Another cause of some validation control does not work is that you have a
script error, that causes that the javascript that is generated by .Net ,
does not run.

Hope this helps.

"Martyn Fewtrell" wrote:
Dear All

I have a Windows 2003 Server with IIS6 where the validation controls on
ASP.Net pages no longer work.

I believe it to be specific to the server as if I create an ASP.Net page on the IIS Server of my Workstation (Win XP) with a text box, button and
required field validator, this works fine. If I create the same page on the IIS6 Windows 2003 Server the validation control doesn't stop the post. I've tried different browsers and JavaScript is on!

For example if I have a number of panels in which the visibility is turned on or off by the button click event this event still fires. The visibility on the panel where the validation control is situated turns off and the
error message is never seen. If I leave the visibility on that panel alone then I see the error message but the click event still fires (not much use).
Looking at the code I presume that the validation control generates some
JavaScript which should be called on post. Is it possible that the Win 2003 Server isn't generating that JavaScript?

Anybody come across this before?

Any suggestions?

Martyn Fewtrell
mf*******@networkclub.co.uk

Nov 18 '05 #2
Two suggestions:

1. Make sure the validation script file, WebUIValidation.js, is installed
and associated with the version of ASP.NET running on that server. The
easiest way to do this is by running this command on that server:

[windows]\microsoft.net\framework\[version]\aspnet_regiis.exe -c

2. In one release of ASP.NET 1.1, there is a bug in the client-side code
that submits the page and causes the page it incorrectly submit. I don't
remember if it always blocks or always allows. Microsoft has put out some
hot fixes to ASP.NET 1.1. Look for them at msdn.microsoft.com to find the
one involved.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Martyn Fewtrell" <mf*******@networkclub.co.uk> wrote in message
news:Ob**************@tk2msftngp13.phx.gbl...
You are correct in what you are saying but this is not the problem!

If you have a form split into two parts - lets say contact details on the
first panel and then the enquiry details on the second panel.

Initially the first panel is set to visible = True and then the second panel to visible = False. When you click the Next button the validation controls
should validate the controls on the first panel before running the click
event on the button i.e. it should stop the click event turning off the
first panel and then turning on the second panel.

This works perfectly on my workstation but if I copy the code onto the
server the validation controls just don't work and the click event still
fires changing the visibility on the forms. However if I disable the
visibility on the first panel i.e. instead of turning one off and one on, I just turn the second one on then the error messages can be seen on the first panel.

I therefore conclude that the error messages on the validator controls are
working but the validation control is failing to stop the click event from
following through.

I hope this explains it better!
"Fernando Hunth" <Fe***********@discussions.microsoft.com> wrote in message news:8F**********************************@microsof t.com...
Martyn:

I think that it is not a 2003 Problem.
It is true that .Net generates javascript for validations, but if you have
these controls at a container that you set it to Invisible, these controls never are rendered and sent to client, because when you set the visibility property on a control, it is never rendered.

Another cause of some validation control does not work is that you have a script error, that causes that the javascript that is generated by .Net , does not run.

Hope this helps.

"Martyn Fewtrell" wrote:
Dear All

I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work.

I believe it to be specific to the server as if I create an ASP.Net page
on the IIS Server of my Workstation (Win XP) with a text box, button and
required field validator, this works fine. If I create the same page
on
the IIS6 Windows 2003 Server the validation control doesn't stop the post. I've tried different browsers and JavaScript is on!

For example if I have a number of panels in which the visibility is turned on or off by the button click event this event still fires. The visibility on the panel where the validation control is situated turns off and
the error message is never seen. If I leave the visibility on that panel

alone then I see the error message but the click event still fires (not much use).
Looking at the code I presume that the validation control generates some JavaScript which should be called on post. Is it possible that the Win 2003 Server isn't generating that JavaScript?

Anybody come across this before?

Any suggestions?

Martyn Fewtrell
mf*******@networkclub.co.uk


Nov 18 '05 #3

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

Similar topics

4
by: earwicker | last post by:
I recently deployed a web application which contains a user registration form with the usual fields: name, address, email, password, etc. Each of the TextBoxes uses a validation control to verify...
1
by: Simon | last post by:
Hi, Has anyone experienced the problem where validation controls stop a previously working page from submitting. Sometimes, when I move between my work machine and my home machine validation...
4
by: AIM48 | last post by:
Hi. We have a framework that we work with for our project. So far we have had very good success – basically the frame work wraps many day to day tasks so that they are all included in the...
2
by: Tim Frawley | last post by:
Source code attached indicates my problem with validation and a button bar save button. Fill the Textbox with some text then tab off the control. The message box will display the text in the...
2
by: dustbort | last post by:
I recently had a problem where my required field validator stopped working. But, the page still posted back and tried to insert a record into the database without performing server-side validation....
1
by: Rajani | last post by:
Hi, I have designed a form which process database Insert, edit and Delete(datagrid). I input userid,password and privilege in textboxes which has validation controls to verify data keyed in....
2
by: Rajani | last post by:
Hi, I have designed a form which process database Insert, edit and Delete(datagrid). I input userid,password and privilege in textboxes which has validation controls to verify data keyed in....
0
by: dhurwitz | last post by:
Hi, In my ASP.NET 2.0 web app, I have a user control, ucBinEdges, with several text boxes. The user control has several validation controls validating the Text of these text boxes -...
3
by: mark4asp | last post by:
How can I stop my Calendar control from firing the form validation events? I have a form containing several controls which have several validation controls each. One control is a TextBox...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.