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

selective validation on specific buttons only

I wish to allow a form to be canceled or go to a previous page without
validation. To do this i would like to validate, say a required field, only
when a specific button is hit. What is the easiest way to do this?
thankss
kes
Nov 19 '05 #1
4 1646
You can add the CausesValidation="false" to the Button so it won't perform
the validation

-Brock
DevelopMentor
http://staff.develop.com/ballen
I wish to allow a form to be canceled or go to a previous page without
validation. To do this i would like to validate, say a required field,
only
when a specific button is hit. What is the easiest way to do this?
thankss
kes


Nov 19 '05 #2
LP
set CauseValidation = false of the buttons that don't need to validate your
form.
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
I wish to allow a form to be canceled or go to a previous page without
validation. To do this i would like to validate, say a required field, only when a specific button is hit. What is the easiest way to do this?
thankss
kes

Nov 19 '05 #3
thank you,
it figures it would be simple!
kes

"Brock Allen" wrote:
You can add the CausesValidation="false" to the Button so it won't perform
the validation

-Brock
DevelopMentor
http://staff.develop.com/ballen
I wish to allow a form to be canceled or go to a previous page without
validation. To do this i would like to validate, say a required field,
only
when a specific button is hit. What is the easiest way to do this?
thankss
kes


Nov 19 '05 #4
thank you,
it figures it would be simple!
kes

"LP" wrote:
set CauseValidation = false of the buttons that don't need to validate your
form.
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
I wish to allow a form to be canceled or go to a previous page without
validation. To do this i would like to validate, say a required field,

only
when a specific button is hit. What is the easiest way to do this?
thankss
kes


Nov 19 '05 #5

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

Similar topics

2
by: Laurent R. Therond | last post by:
Hi, I searched for something like this, but could not locate any information. I may have used bad keywords, or it does not make any sense... Anyhow, there it goes... Let's say you overlay...
7
by: Marina | last post by:
Imagine a form with some fields and an OK buttons that saves the information. Each field has validation logic in the Validating event. If the input is not valid, the control's value is replaced...
2
by: D | last post by:
Most of my web forms have multiple buttons (Proceed, Back, link buttons for various screens, etc.) It looks like, say a required field validator for example, gives me an error message no matter...
7
by: A.M | last post by:
Hi, I have a validation control in my page that upon any invalid data, it disables all buttons in the page. basicly i don't have any postback in the page if the validator finds any error. How...
2
by: Bobby Maul | last post by:
I'm not sure the subject of this post adequately describes my situation, so let my elaborate. We have a web form with two textboxes--one for a start date/time and the other for an end date/time. ...
3
by: Vi | last post by:
Hi, I have a form which displays some orders based on dates selected or based on an order number. I have two different buttons for each kind of query, but both buttons call the same method in the...
9
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see)...
4
by: Alan Silver | last post by:
Hello, I have been playing with some of the code in ASP.NET Unleashed, to try and understand what's going on. I am getting on pretty well, but have struck a problem. I was looking at samples for...
5
by: Tina | last post by:
the Edit, Update, Cancel, and Delete buttons in my datagrid are causing validation elsewhere on the page. I want to specify that these buttons should not cause validation but they have no design...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...
0
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,...
0
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
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...

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.