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

Multiple Validator in a Web Form

Dear All,

would you know how to create mutiple required field validator (Eg. 2 TextBoxes),
and when a submit button is clicked with fields are empty, the error messages for the 2 TextBoxes will be appeared in only ONE message box, and if it's only one is empty then only one error message appeared?

Thanks.
Nov 16 '05 #1
1 1513
Use a ValidationSummary control. Set the FORECOLOR of your
RequiredFieldValidators to same color of your page background. This way, you
will only see the messages from the ValidationSummary controls

Telmo

"0582" <05**@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
Dear All,

would you know how to create mutiple required field validator (Eg. 2
TextBoxes),
and when a submit button is clicked with fields are empty, the error
messages for the 2 TextBoxes will be appeared in only ONE message box, and
if it's only one is empty then only one error message appeared?

Thanks.

Nov 16 '05 #2

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

Similar topics

14
by: Jacqui or (maybe) Pete | last post by:
Having just answered a question about multiple linked stylesheets, I thought I'd have a look at browser support. There's a quick test page here: http://www.porjes.com/ms/ I wrote it...
0
by: nzanella | last post by:
Hello, I have an ASP.NET HTML form control with multiple HTML input button controls each of which has an associated HTML input control. For each HTML input control I have a validator that...
8
by: News | last post by:
Hi, I have a page with one <form></form>. This page contains 2 part forms with 2 buttons, one for each part form. <form> Part 1 <date>
3
by: Angelos Karantzalis | last post by:
Hi guys, I've a small problem with validators. I'm building a single .aspx file that handles all my form posts. I need to be using ASP.NET validators ( or subclasses thereof ), so what i do to...
7
by: Jeff | last post by:
I plan to write a Windows Forms MDI application for a medical office. Users must be able to select a patient and view related information on multiple forms; with1-4 forms opened at the same time...
3
by: dpomt | last post by:
I am facing some issues with the webforms DefaultButton functionality: #1 One text box ==> hitting enter works in IE but not in Firefox (1.5) #2 One text box and req. field validator ==> problem...
2
by: Tarun Mistry | last post by:
Hi everyone, is it possible to make a custom validator work on multiple fields? I have 3 input text boxes, I would like a validator that checks to ensure at least 1 of them contains informaion...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
1
by: steven scaife | last post by:
Hi I have created two user controls that are the basis of two forms. I havent included the form tag in the user controls. one of the controls accepts one input which is a numeric text field...
4
by: Brybot | last post by:
I have a form that i've split up into multiple asp:panels, each panel has a number of validators which work correctly. At on the last panel, i want to commit the data collected to a database. I...
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: 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?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.