473,383 Members | 1,929 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.

Required field and canceling out of a page.

I have a page with required fields but also want a cancel button so the user
can stop doing what they are doing. Problem is, if I use a required field
validator and they then click cancel, it says the fields are required.

Any way around that other than writing the required code myself?

TIA - Jeff.
Feb 13 '08 #1
3 759
on the cancel button, set CausesValidation to false.

-- bruce (sqlwork.com)
"Mufasa" wrote:
I have a page with required fields but also want a cancel button so the user
can stop doing what they are doing. Problem is, if I use a required field
validator and they then click cancel, it says the fields are required.

Any way around that other than writing the required code myself?

TIA - Jeff.
Feb 13 '08 #2
for the cancel button set CausesValidation to false

--
Misbah Arefin
"Mufasa" <jb@nowhere.comwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
I have a page with required fields but also want a cancel button so the
user can stop doing what they are doing. Problem is, if I use a required
field validator and they then click cancel, it says the fields are
required.

Any way around that other than writing the required code myself?

TIA - Jeff.
Feb 13 '08 #3
Thanks everybody. That worked great.

"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:24**********************************@microsof t.com...
on the cancel button, set CausesValidation to false.

-- bruce (sqlwork.com)
"Mufasa" wrote:
>I have a page with required fields but also want a cancel button so the
user
can stop doing what they are doing. Problem is, if I use a required field
validator and they then click cancel, it says the fields are required.

Any way around that other than writing the required code myself?

TIA - Jeff.

Feb 13 '08 #4

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

Similar topics

3
by: Rick | last post by:
I have an interesting problem when I run the following code in Netscape (7.02) vs. IE. This page works great in IE and all my controls bring up the validation summary dialog box if the required...
5
by: Do | last post by:
Hi, Has anybody run into problems with Page.IsValid? My errors show up when the fields aren't filled correctly, but my processing continues even if the page is invalid. I leave name and...
5
by: Brent Burkart | last post by:
I have a page with a couple of Required Field Validators. However, I have a button which displays a popup with some information. I want this button to be able to work without having the Required...
2
by: pmud | last post by:
Hi, I have an ASP.Net web page . The page was working fine until I added a required field field validator. My page has a link button which takes the user to another page, a submit button which...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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.