473,509 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form posting despite validation errors

On my dev machine it works as expected: if validation fails, message displays (in val message control) and button click is cancelled

In production; the button click is not cancelled when validation fails. The validation message displays as well as the resulting database error (which I display in a label on the page). So it appears the validtion controls are running but hte button event is not being cancelled

Dev and Prod environments are identical

Has anyone seen this behavior? TI
Nov 18 '05 #1
2 1382
Sam,

Are you checking the IsValid property of the Page object in the event
handler? if any validation failes, IsValid will be false.

--
Cheers!
Rajiv. R
Rajspace.Org

"Sam Jackson" <an*******@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
On my dev machine it works as expected: if validation fails, message displays (in val message control) and button click is cancelled.
In production; the button click is not cancelled when validation fails. The validation message displays as well as the resulting database error
(which I display in a label on the page). So it appears the validtion
controls are running but hte button event is not being cancelled.
Dev and Prod environments are identical.

Has anyone seen this behavior? TIA

Nov 18 '05 #2
Thanks, Rajiv

I can use that as a workaround I suppose, but I'd like to understand why the behavior is different between the two environments. I'd like to have the client-side validation prevent the form from posting as it does in my dev environment

Is there a setting whereby client validation runs but the form still is posted on failure?
Nov 18 '05 #3

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

Similar topics

2
232
by: Sam Jackson | last post by:
On my dev machine it works as expected: if validation fails, message displays (in val message control) and button click is cancelled In production; the button click is not cancelled when...
2
250
by: Sam Jackson | last post by:
On my dev machine it works as expected: if validation fails, message displays (in val message control) and button click is cancelled In production; the button click is not cancelled when...
13
2723
by: Ian.Suttle | last post by:
I am have been researching this issue to no end, so any help would be very much appreciated. I have a page with form tags. Inside of the form tags is a panel that contains a user control. The...
11
2961
by: Rik | last post by:
Hello guys, now that I'm that I'm working on my first major 'open' forms (with uncontrolled users I mean, not a secure backend-interface), I'd like to add a lot of possibilities to check wether...
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
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,...
1
7067
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...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.