473,614 Members | 2,101 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

stop firing validation controls

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. And press the button to perform insert
operation. Upto here is fine.

I want to perform edit or delete operations. I put datagrid for that one.
After clicking the Update button for the row, the validation controls are
firing again. I need to input some temporary data in the form fields to
perform actual update operation. How can i stop firing validation controls at
this stage?
Apr 25 '06 #1
2 1806
> 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. And press the button to perform insert
operation. Upto here is fine.

I want to perform edit or delete operations. I put datagrid for that one.
After clicking the Update button for the row, the validation controls are
firing again. I need to input some temporary data in the form fields to
perform actual update operation. How can i stop firing validation controls
at this stage?


You can tell a button not to do any validation by setting the
CausesValidatio n property to false.

Hans Kesting
Apr 25 '06 #2
You could also try disabling the validation controls in the button click
handler for the Update.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Rajani" wrote:
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. And press the button to perform insert
operation. Upto here is fine.

I want to perform edit or delete operations. I put datagrid for that one.
After clicking the Update button for the row, the validation controls are
firing again. I need to input some temporary data in the form fields to
perform actual update operation. How can i stop firing validation controls at
this stage?

Apr 25 '06 #3

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

Similar topics

3
3027
by: Eugene Banks | last post by:
I have an ASP.NET web form that includes validation controls. When I run the app locally, the validation controls fire properly. However, once I deploy the app to the testing web server, no validation controls fire. This is the case whether I enable client side script, or if I validate the form after posting back to the web server. Has anyone ever experienced this behavior? Anyone know how to fix it?
2
3993
by: Martyn Fewtrell | last post by:
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...
2
3187
by: Eric Maia | last post by:
I have a textbox (StartDateTextBox) in a UserControl on my page, that is supposed to have a date entered into it. I have a RequiredFieldValidator that has its ControlToValidate property set to the textbox. I also have a CompareValidator pointed to the textbox with its Type="Date." Despite all documentation to the contrary, I am getting an exception when the page first loads that is thrown by the CompareValidator, complaining that it...
8
5989
by: John Dalberg | last post by:
I have an aspx page that was developed initially in Dreamweaver as a regular html file. I have added a few textboxes and required validators. The problem is that the client side validation is not firing. Only server side is working - I have verified javascript is enabled - aspnet_client folder is present. Other aspx apps with validation work fine. - I can see validation JS code in the html plus the "onsubmit="if (!ValidatorOnSubmit())...
7
4571
by: Denise | last post by:
I just realized the DataTable_RowChanging events were firing when I called Fill method of the DataAdapter! It fires TWICE for each row loaded. I thought these were only supposed to be called when data was actually being edited. I am using bound textbox controls on the form. Could that have anything to do with it? Does anyone know how to stop the RowChanging events from firing? Thanks!
1
1827
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. And press the button to perform insert operation. Upto here is fine. I want to perform edit or delete operations. I put datagrid for that one.
3
2169
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 where the date is entered. Connected to this is an image button which launches a popup window containing a calendar control. The selected value from the calendar is then fed back to the TextBox.
0
1215
by: Brooke | last post by:
I am having problems with controls on a panel not firing. The controls that are directly on the form will validate, but the controls on the panel will not validate. I have the AutoValidate property for the form set to EnableAllowFocusChange and then I call the ValidateChildren method when the save button is clicked. If I cannot get the form to validate the controls, can I loop through each control and call the validate event? Thanks
2
1717
by: Digiplex | last post by:
I have a set of controls that uses the RequiredFieldValidator controls and I check Page.IsValid in a button's Click event. This works. However, I also have a Gridview on the same page which is not using the validation contols, and it somehow is firing the RequiredFieldValidator controls on the page. How do I stop this behavior? Thanks
0
8176
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8620
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8571
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8265
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8423
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7047
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5537
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4115
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1705
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.