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

Validation Controls

Hi All,

How can place 2 validation controls one on top of another? The first one is the RequiredFieldValidator and the second one is the RegularExpressionValidator. Both needs to validate an e-mail field and should show Red * in the same spot while the message is displayed via the ValidationSummary control. There could be other fields to be validated so all Red * should be aligned in the same column.

Thanks,

Joe
Mar 3 '07 #1
7 3695
If you are in GridLayout view (which uses CSS II to position controls), you'ld just place one control on top of the other. If not (the default), just change the Display property of each control to "dynamic". They won't look stacked up while you are designing your form, but they will share the same space at runtime.
"Joe Penora" <DF****@hotmail.comwrote in message news:eh**************@TK2MSFTNGP02.phx.gbl...
Hi All,

How can place 2 validation controls one on top of another? The first one is the RequiredFieldValidator and the second one is the RegularExpressionValidator. Both needs to validate an e-mail field and should show Red * in the same spot while the message is displayed via the ValidationSummary control. There could be other fields to be validated so all Red * should be aligned in the same column.

Thanks,

Joe
Mar 3 '07 #2
Hi Scott,

I am not using a grid the fields are with a table while I created a another column just to display the Red * when empty.

The problem is how dynamically can I change each property for those 2 Validation Controls? I think some Java Script should handle that since it is on the client side.

Thanks,

Joe
"Scott M." <s-***@nospam.nospamwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
If you are in GridLayout view (which uses CSS II to position controls), you'ld just place one control on top of the other. If not (the default), just change the Display property of each control to "dynamic". They won't look stacked up while you are designing your form, but they will share the same space at runtime.
"Joe Penora" <DF****@hotmail.comwrote in message news:eh**************@TK2MSFTNGP02.phx.gbl...
Hi All,

How can place 2 validation controls one on top of another? The first one is the RequiredFieldValidator and the second one is the RegularExpressionValidator. Both needs to validate an e-mail field and should show Red * in the same spot while the message is displayed via the ValidationSummary control. There could be other fields to be validated so all Red * should be aligned in the same column.

Thanks,

Joe
Mar 3 '07 #3
Hi Joe,

I think you are looking for the "Display" property of the Validators,
if you have two validators for one control you should probably set
this property to "Dynamic"

Good luck!

Jim
Mar 3 '07 #4
Hi Jim,

That worked.

Thanks.
Mar 3 '07 #5
I'm not talking about being in a grid. I'm talking about designing the page in either GridLayout View or FlowLayout View (the default).
"Joe Penora" <DF****@hotmail.comwrote in message news:uW***************@TK2MSFTNGP02.phx.gbl...
Hi Scott,

I am not using a grid the fields are with a table while I created a another column just to display the Red * when empty.

The problem is how dynamically can I change each property for those 2 Validation Controls? I think some Java Script should handle that since it is on the client side.

Thanks,

Joe
"Scott M." <s-***@nospam.nospamwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
If you are in GridLayout view (which uses CSS II to position controls), you'ld just place one control on top of the other. If not (the default), just change the Display property of each control to "dynamic". They won't look stacked up while you are designing your form, but they will share the same space at runtime.
"Joe Penora" <DF****@hotmail.comwrote in message news:eh**************@TK2MSFTNGP02.phx.gbl...
Hi All,

How can place 2 validation controls one on top of another? The first one is the RequiredFieldValidator and the second one is the RegularExpressionValidator. Both needs to validate an e-mail field and should show Red * in the same spot while the message is displayed via the ValidationSummary control. There could be other fields to be validated so all Red * should be aligned in the same column.

Thanks,

Joe
Mar 4 '07 #6
Gee, that sounds exactly like what I said in my first message.
"Joe Penora" <DF****@hotmail.comwrote in message news:u0**************@TK2MSFTNGP03.phx.gbl...
Hi Jim,

That worked.

Thanks.
Mar 4 '07 #7
Hi Scott,

You are right Scott, somehow I missed it.

Thanks,

Joe
Mar 4 '07 #8

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

Similar topics

2
by: buran | last post by:
Dear ASP.NET Programmers, I have a web user control (a search menu) which has 2 validation controls (one for input and another for the search criterion). I am including this search user control...
6
by: Nedu N | last post by:
Hi, I want to have confirmation(Yes/No) on a button of the webform in which there are many validation controls. I want all the validation controls to be triggered first and then Yes/No...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
6
by: Stephen | last post by:
Hi, the validation controls dont work on Netscape or Mozilla and only on Internet Explorer why? How do i correct this problem? Thanks
2
by: Martyn Fewtrell | last post by:
Dear All I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work. I believe it to be specific to the server as if I create an ASP.Net page on the...
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
2
by: Tim Frawley | last post by:
Source code attached indicates my problem with validation and a button bar save button. Fill the Textbox with some text then tab off the control. The message box will display the text in the...
5
by: Kyle | last post by:
On my Development System, all the page validation controls work fine (WinXP Pro + SP2, VS.NET 2003, .NET v1.1.4322). On the Production System, none of the page validation controls are working...
12
by: Dabbler | last post by:
I need to insure that at least one of three phone number fields has a value (requiredfield) but I'm not sure of a way to implement this without server side logic. Is there a way to use the...
0
by: dhurwitz | last post by:
Hi, In my ASP.NET 2.0 web app, I have a user control, ucBinEdges, with several text boxes. The user control has several validation controls validating the Text of these text boxes -...
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?
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...
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.