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

CausesValidation

Hi all, I've a form with a Cancel Button. The button has its CausesValidation
property set to false. I've got some Validating events on the form's controls.

When I click the button everything works fine: No Validating event is fired.
But when focus is on any other control and I press ESCAPE (which is supposed
to simulate the cancel button click event) the Validating event is fired.

I guess this is a bug. But if anyone has a solution for the Validating event
not being fire when I press Escape I would appreciate.

TIA
Nov 28 '07 #1
1 2142
DC,

http://www.thescripts.com/forum/thread512556.html

Kerry Moorman
"DC" wrote:
Hi all, I've a form with a Cancel Button. The button has its CausesValidation
property set to false. I've got some Validating events on the form's controls.

When I click the button everything works fine: No Validating event is fired.
But when focus is on any other control and I press ESCAPE (which is supposed
to simulate the cancel button click event) the Validating event is fired.

I guess this is a bug. But if anyone has a solution for the Validating event
not being fire when I press Escape I would appreciate.

TIA
Nov 28 '07 #2

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

Similar topics

0
by: Josh Anderson - remove Zs to reply | last post by:
I have a repeater set up which builds a table containing buttons used to remove that particular item. Elsewhere on the page are validation controls. Although I have set the CausesValidation...
1
by: George Durzi | last post by:
I have an editcommandcolumn in my datagrid, as follows. <asp:editcommandcolumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"> I'd like to set the...
4
by: z. f. | last post by:
Hi, I'm having an aspx page with a server form. i have a grid with a delete button and below the grid, another area with inputs for inserting new values and an "add" button for submiting the...
4
by: z. f. | last post by:
Hi, i stated that this is an advanced question because i have a post from few days ago that i received answers to with suggestions that looked good but did not work, so please if you post a...
1
by: sakieboy | last post by:
Having an issue with the datagrid.... Instead of actually updating everytime someone selects update in the datagrid, I am currently writing an XML file on the server that consists of the datagrid...
28
by: Tim_Mac | last post by:
hi, i'm new to .net 2.0, and am just starting to get to grips with the gridview. my page has autoEventWireUp set to true, which i gather is supposed to figure out which handlers to invoke when...
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....
2
by: mwieder | last post by:
Given an html anchor button control, in javascript can I tell whether that control is set to cause validation or not? In ASP.NET the property that gets set is CausesValidatation, but in...
1
by: Joseph | last post by:
I have simple app with a textBox, a button and errorProvider. I have all the controls CausesValidation set to true, and the following code: private void textBox1_Validation(object sender,...
0
by: =?Utf-8?B?RG91YnQgb2YgUmFqZWV2IEFN?= | last post by:
Dear all I require certain clarification on following line. This is regarding causesvalidation property of visualstudio 2005 controls. Iam using windows forms not web forms. Inorder to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: 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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...

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.