|
 |
aspx thread: Validators
Message #1 by "Bevan Souster" <Bevan.Souster@i...> on Tue, 27 Nov 2001 10:54:33 +1300
|
|
I am working with validators from the .NET toolbox to validate a text
box on my webform to insure that it only accepts valid dates. To do
this I am using a compare validator to perform a datatype check on the
user's input.
This is great but I can't find an easy way to perform a required field
check on the same text box. I either have to add another validator to
check for this or code my own custom date validator which I am not keen
to do.
Does anyone know an easy way to get a compare or range validator to also
check for the required field?
Bevan
Message #2 by "Samuel Engelman" <samuel_engelman@p...> on Mon, 26 Nov 2001 17:40:27 -0500
|
|
I remember reading an article stating that this is impossible. Why don't you
want to have 2 validators?
|--------+--------------------------------->
| | "Bevan Souster" |
| | <Bevan.Souster@i...>|
| | |
| | |
| | Tuesday November 27, 2001 |
| | 05:54 AM |
| | Please respond to "ASP+" |
| | |
|--------+--------------------------------->
>------------------------------------------------------------|
| |
| To: "ASP+" |
| <aspx@p...> |
| cc: |
| Subject: [aspx] Validators |
>------------------------------------------------------------|
I am working with validators from the .NET toolbox to validate a text
box on my webform to insure that it only accepts valid dates. To do
this I am using a compare validator to perform a datatype check on the
user's input.
This is great but I can't find an easy way to perform a required field
check on the same text box. I either have to add another validator to
check for this or code my own custom date validator which I am not keen
to do.
Does anyone know an easy way to get a compare or range validator to also
check for the required field?
Bevan
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=39&id=17
---
You are currently subscribed to
aspx as: Samuel_Engelman@p...
$subst('Email.Unsub')
Message #3 by Jeri Lamy <jlamy@2...> on Mon, 26 Nov 2001 15:44:15 -0700
|
|
It is not possible to have one validator perform 2 checks like that unless
you write a custom validator. The accepted way to do this is to have 2
validators...it should make no difference.
Jeri Lamy
Developer
HBW - Denver
***********************************************************************
I am working with validators from the .NET toolbox to validate a text
box on my webform to insure that it only accepts valid dates. To do
this I am using a compare validator to perform a datatype check on the
user's input.
This is great but I can't find an easy way to perform a required field
check on the same text box. I either have to add another validator to
check for this or code my own custom date validator which I am not keen
to do.
Does anyone know an easy way to get a compare or range validator to also
check for the required field?
Bevan
Message #4 by "Bevan Souster" <Bevan.Souster@i...> on Tue, 27 Nov 2001 13:35:42 +1300
|
|
Purely because I am displaying an 'x' image next to the relevant fields
and if I have two validators then the 'x' is situated in different
places depending on which validator is invalid.
-----Original Message-----
From: Samuel Engelman [mailto:samuel_engelman@p...]
Sent: Tuesday, 27 November 2001 11:40 a.m.
To: ASP+
Subject: [aspx] Re: Validators
I remember reading an article stating that this is impossible. Why don't
you
want to have 2 validators?
|--------+--------------------------------->
| | "Bevan Souster" |
| | <Bevan.Souster@i...>|
| | |
| | |
| | Tuesday November 27, 2001 |
| | 05:54 AM |
| | Please respond to "ASP+" |
| | |
|--------+--------------------------------->
>------------------------------------------------------------|
| |
| To: "ASP+" |
| <aspx@p...> |
| cc: |
| Subject: [aspx] Validators |
>------------------------------------------------------------|
I am working with validators from the .NET toolbox to validate a text
box on my webform to insure that it only accepts valid dates. To do
this I am using a compare validator to perform a datatype check on the
user's input.
This is great but I can't find an easy way to perform a required field
check on the same text box. I either have to add another validator to
check for this or code my own custom date validator which I am not keen
to do.
Does anyone know an easy way to get a compare or range validator to also
check for the required field?
Bevan
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=3D39&id=3D17
---
You are currently subscribed to
aspx as: Samuel_Engelman@p...
$subst('Email.Unsub')
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=3D39&id=3D17
---
You are currently subscribed to
aspx as: bevans@i...
$subst('Email.Unsub')
Message #5 by "Samuel Engelman" <samuel_engelman@p...> on Tue, 27 Nov 2001 09:12:01 -0500
|
|
you can use style="display:none"
|--------+--------------------------------->
| | "Bevan Souster" |
| | <Bevan.Souster@i...>|
| | |
| | |
| | Tuesday November 27, 2001 |
| | 08:35 AM |
| | Please respond to "ASP+" |
| | |
|--------+--------------------------------->
>------------------------------------------------------------|
| |
| To: "ASP+" |
| <aspx@p...> |
| cc: |
| Subject: [aspx] Re: Validators |
>------------------------------------------------------------|
Purely because I am displaying an 'x' image next to the relevant fields
and if I have two validators then the 'x' is situated in different
places depending on which validator is invalid.
-----Original Message-----
From: Samuel Engelman [mailto:samuel_engelman@p...]
Sent: Tuesday, 27 November 2001 11:40 a.m.
To: ASP+
Subject: [aspx] Re: Validators
I remember reading an article stating that this is impossible. Why don't
you
want to have 2 validators?
|--------+--------------------------------->
| | "Bevan Souster" |
| | <Bevan.Souster@i...>|
| | |
| | |
| | Tuesday November 27, 2001 |
| | 05:54 AM |
| | Please respond to "ASP+" |
| | |
|--------+--------------------------------->
>------------------------------------------------------------|
| |
| To: "ASP+" |
| <aspx@p...> |
| cc: |
| Subject: [aspx] Validators |
>------------------------------------------------------------|
I am working with validators from the .NET toolbox to validate a text
box on my webform to insure that it only accepts valid dates. To do
this I am using a compare validator to perform a datatype check on the
user's input.
This is great but I can't find an easy way to perform a required field
check on the same text box. I either have to add another validator to
check for this or code my own custom date validator which I am not keen
to do.
Does anyone know an easy way to get a compare or range validator to also
check for the required field?
Bevan
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=39&id=17
---
You are currently subscribed to
aspx as: Samuel_Engelman@p...
$subst('Email.Unsub')
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=39&id=17
---
You are currently subscribed to
aspx as: bevans@i...
$subst('Email.Unsub')
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=39&id=17
---
You are currently subscribed to
aspx as: Samuel_Engelman@p...
$subst('Email.Unsub')
Message #6 by Jeri Lamy <jlamy@2...> on Tue, 27 Nov 2001 10:25:49 -0700
|
|
Through the style property of the control, you can specify an absolute
position. Just put them both in the same place.
Jeri Lamy
Developer
HBW - Denver
-----Original Message-----
From: Bevan Souster [mailto:Bevan.Souster@i...]
Sent: Monday, November 26, 2001 5:36 PM
To: ASP+
Subject: [aspx] Re: Validators
Purely because I am displaying an 'x' image next to the relevant fields
and if I have two validators then the 'x' is situated in different
places depending on which validator is invalid.
Message #7 by "Samuel Engelman" <samuel_engelman@p...> on Tue, 27 Nov 2001 13:43:08 -0500
|
|
you don't need to use the style property
use the display property of the control and set it to dynamic. behind the scenes
the style will be set to display:none
|--------+--------------------------------->
| | Jeri Lamy <jlamy@2...> |
| | |
| | |
| | Tuesday November 27, 2001 |
| | 12:25 PM |
| | Please respond to "ASP+" |
| | |
|--------+--------------------------------->
>------------------------------------------------------------|
| |
| To: "ASP+" |
| <aspx@p...> |
| cc: |
| Subject: [aspx] Re: Validators |
>------------------------------------------------------------|
Through the style property of the control, you can specify an absolute
position. Just put them both in the same place.
Jeri Lamy
Developer
HBW - Denver
-----Original Message-----
From: Bevan Souster [mailto:Bevan.Souster@i...]
Sent: Monday, November 26, 2001 5:36 PM
To: ASP+
Subject: [aspx] Re: Validators
Purely because I am displaying an 'x' image next to the relevant fields
and if I have two validators then the 'x' is situated in different
places depending on which validator is invalid.
---
VBug Winter Conference 2001
Open Forum: Dan Appleman will be hosting an open
forum at The .NET Developer's Conference on
29th November 2001. The session will give
developers the chance to discuss and question
Dan on his experience with the .NET environment.
Dan has been programming Visual Basic since the
alpha version 1.0. And with over 10 years
Visual Basic experience is well qualified to
help you on your road to being a .NET Guru.
http://www.vbug.co.uk/redirect.asp?url=39&id=17
---
You are currently subscribed to
aspx as: Samuel_Engelman@p...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid=rn_ebooks
|
|
 |