473,586 Members | 2,491 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 1392
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*******@disc ussions.microso ft.com> wrote in message
news:51******** *************** ***********@mic rosoft.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 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...
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 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...
13
2730
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 form tags are NOT inside of the user control. Inside that user control are a few panels that contains different steps of an application (for...
11
2982
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 certain fields match certain criteria, and inform the user in different ways when the data is wrong (offcourse, this will be checked on posting the...
0
8204
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7965
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6617
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5712
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3838
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2345
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 we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1184
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.