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

Required Field Validator (ASP.NET)

Hi. I have a webform with a two required field validators. I have a cancel
button on the form which should allow the user to quit the form and
Response.Redirect to a previous webform. However, when users attempt to
cancel out of the form they cannot because the required field validators turn
on (because the page is posted back) and the users must actually input values
into the required fields and then click the cancel button.

How can I allow users to simply exit out of the webform dispite whether or
not they've completed the required fields? Thanks.
Nov 22 '05 #1
3 1705
set button's CausesValidation property to False.

hope this helps.

"MrMike" wrote:
Hi. I have a webform with a two required field validators. I have a cancel
button on the form which should allow the user to quit the form and
Response.Redirect to a previous webform. However, when users attempt to
cancel out of the form they cannot because the required field validators turn
on (because the page is posted back) and the users must actually input values
into the required fields and then click the cancel button.

How can I allow users to simply exit out of the webform dispite whether or
not they've completed the required fields? Thanks.

Nov 22 '05 #2
set button's CausesValidation property to False.

hope this helps.

"MrMike" wrote:
Hi. I have a webform with a two required field validators. I have a cancel
button on the form which should allow the user to quit the form and
Response.Redirect to a previous webform. However, when users attempt to
cancel out of the form they cannot because the required field validators turn
on (because the page is posted back) and the users must actually input values
into the required fields and then click the cancel button.

How can I allow users to simply exit out of the webform dispite whether or
not they've completed the required fields? Thanks.

Nov 22 '05 #3
Alan, Unfortunately this did not work. Any other suggestions? Thanks for
helping.

"[Alan Flores]" wrote:
set button's CausesValidation property to False.

hope this helps.

"MrMike" wrote:
Hi. I have a webform with a two required field validators. I have a cancel
button on the form which should allow the user to quit the form and
Response.Redirect to a previous webform. However, when users attempt to
cancel out of the form they cannot because the required field validators turn
on (because the page is posted back) and the users must actually input values
into the required fields and then click the cancel button.

How can I allow users to simply exit out of the webform dispite whether or
not they've completed the required fields? Thanks.

Nov 22 '05 #4

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

Similar topics

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...
6
by: hansiman | last post by:
I'm having trouble getting the required field validator to work. I can still save the row in the datagrid... I can't see what I'm doing wrong. <asp:TemplateColumn SortExpression="c.Password"...
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...
2
by: David Hearn | last post by:
I have some required field validators on a form and would like to know if there is a way to set focus back to the field that is required if the validator is triggered. The problem is that the...
0
by: dinsdale | last post by:
Wow, this is a really embarassing thing to have to ask about... I have an asp.net page with a multiview control in it. We want to enter person info in a semi - wizard style and I wanted to use...
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
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
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: 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:
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
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?
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.