473,320 Members | 1,828 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,320 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 1700
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.