473,699 Members | 2,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Required Field Validators and Response.Redire ct


Simple question, I have a webform that uses required
field validators, I also have a button that links back to
that forms homepage. If the user wants to stop what
he/she is doing and clicks that link, the required field
validators all work as intended, but does not allow the
redirect.

Any possible workaround ?

Thanks,
Robert

Nov 18 '05 #1
3 2367

"Rob H" <dr************ **@hhotmail.com > wrote in message
news:08******** *************** *****@phx.gbl.. .

Simple question, I have a webform that uses required
field validators, I also have a button that links back to
that forms homepage. If the user wants to stop what
he/she is doing and clicks that link, the required field
validators all work as intended, but does not allow the
redirect.

Any possible workaround ?

Thanks,
Robert


Set RequiresValidat ion of that link to false
Hans Kesting
Nov 18 '05 #2
Rob,

In the design window click on the button in question and then view the
button's properties. Set the property "CausesValidati on" to false and the
button will function without triggering the validators on the page.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Rob H" <dr************ **@hhotmail.com > wrote in message
news:08******** *************** *****@phx.gbl.. .

Simple question, I have a webform that uses required
field validators, I also have a button that links back to
that forms homepage. If the user wants to stop what
he/she is doing and clicks that link, the required field
validators all work as intended, but does not allow the
redirect.

Any possible workaround ?

Thanks,
Robert

Nov 18 '05 #3
THANK YOU!
Nov 18 '05 #4

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

Similar topics

2
2426
by: Mark Creelman | last post by:
Hi: I am relatively new to ASP. I prefer Perl, but need to do this form to e-mail sipt for a web page, See Example of script below that works fine. I want to add the feature to this where it will tell customer that they missed a field, "click here" to go back & try again. Does not need to be fancy telling them which field they missed. (Although would be nice) Can even require all fields to be filled out, or do again. Currently it...
2
373
by: MrMike | last post by:
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...
5
319
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 Field Validators fire. I can't figure out how to do that. Is there a better way of validating the info rather than using field validators? Any help is appreciated? Thanks, Brent
1
1003
by: Big E | last post by:
I'm using ASP.Net. I have a form that uses Required Field Validators. If the user tried to click a create new record button and certain fields aren't filled out then the RFV's show up. My problem is when a user wants to close the form without adding a new record and there's nothing in the fields it won't close. I've tried to create in the vb code a way to turn off the validators but they happen before the validator disable function runs....
4
8050
by: Sorin Sandu | last post by:
I have a form with 2 textboxes, 2 required field validators for each textbox, and 2 buttons (OK, Cancel) Is it posible for cancel button to disable required field validators ?
0
1266
by: Ratman | last post by:
Regular Expression validators NOT working, Required Field validators ARE working I have tried everything from moving the aspnet_client folder around from root to web application, making it a virtual directory, not making it a virtual directory. I am at a loss. I even uninstalled framework, reinstalled 1.0, then sp3, then 1.1, then sp1. Still no go. My code is simple, it used to work, the only thing I can think that I did since it has...
2
9810
by: Asha | last post by:
greetings i want to use the required field validator control to validate a checkbox. here is the code implemented. <asp:RequiredFieldValidator ID="rfv" ControlToValidate="chkDistiAudit" ErrorMessage="error" runat="server" /> <asp:checkbox id="chkDistiAudit" runat="server" CssClass="objControl_left" Width="100px" Text="Disti Audit" Checked="True"></asp:checkbox>
3
1526
by: VB Programmer | last post by:
Can you make a required field validator optional? I know it sounds crazy, but.... Let's say I have a signup form. It consists of 2 sections. The top section is a "GOLD MEMBER" section. It has required validators for name, address, etc... The next section is the "BRONZE MEMBER" section. It also has required validators for the same fields. The user only has to fill out 1 set of info. Any thoughts on how to accomplish this?
0
1046
by: savvy | last post by:
I'm having some background graphics layout on the page and a table layout on top of it. Inside the table i have two DropDownList menus whose AutoPostBack Property is set to true and I'm using two Required Field Validators for both the drop down menus. I dont know whats the reason but everytime I change the dropdown menu the page takes a long time to reload and moreover I can even see the whole background graphic layout with no table...
0
9171
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
9032
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
8905
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,...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
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
4373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.