473,385 Members | 1,642 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.

Required Field Validators

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.

Thanks.

E
Nov 18 '05 #1
1 992
"Big E" <no****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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.


Perhaps you should add a Cancel button, with CausesValidation turned off?
That button could be used to cancel the entry of the new row, even though
not all of the new fields will have been filled in.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2

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

Similar topics

2
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,...
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...
3
by: Rob H | last post by:
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...
4
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
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...
2
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"...
3
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...
1
by: Dave | last post by:
Hi, I'm using .NET 1.1 and wondering if I can use RequiredFieldValidators with required fields inside user controls. The page is a type of tabbed panel layout with the divs show/hidden using...
0
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...
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
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: 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
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: 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...

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.