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 7 3680
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
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
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
Hi Jim,
That worked.
Thanks.
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
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.
Hi Scott,
You are right Scott, somehow I missed it.
Thanks,
Joe This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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)...
|
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
|
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...
|
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.
...
|
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...
|
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...
|
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...
|
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 -...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
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)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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...
| |