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

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 1373
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
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
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.