CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Validation showing red where the validation error occured "*"

Print topic Send  topic

Author Message
gmarkwood

Posts: 10
Posted: 01/25/2004, 7:16 PM

I would like to have a red "Asterisk" show up near a field that does not meet the validation criteria. The error handling of CCS is hard to read when you have many validated fields that DO NOT meet the validation on a page and not sure where the real errors are occuring because you have read through the long error text at top.

If I can not do this easly, how can I change the color of the border of the validated field so it would trun red. I have some logic that I write to validate, if a check box is ENABLED, then the next textbox must contain text. If the check box is ENABLED and the textbox =null (=""), then I would like the textbox to turn red after validation, or turn an "Asterisk" red to show where the field is located.

Turning the textbox red would be OK for me since most of the validation for fields is done in custom code. I would like control that property when the page is re-rendered based on failure of validation.

Can the control of the textbox borders be done in .asp/VBScript through code? /mw

View profile  Send private message
DonB
Posted: 01/25/2004, 8:08 PM

Just stick a Label control in where you want the asterisk to appear. Select
the {Label1} tag and assign a font color of red to it.

On the control that you want to validate, point it's Error Control property
to this label.

Set up the validation text to be "*" (or anything else you want).

Presumably the validation itself is already in place (if not enter an
expression for the validation, of just check the "required" Format property.

Now, when the field fails to validate, the label is set to an asterisk.

--
DonB

http://www.gotodon.com/ccbth


"gmarkwood" <gmarkwood@forum.codecharge> wrote in message
news:64014868c9a901@news.codecharge.com...
> I would like to have a red "Asterisk" show up near a field that does not
meet the validation criteria. The error handling of CCS is hard to read
when you have many validated fields that DO NOT meet the validation on a
page and not sure where the real errors are occuring because you have read
through the long error text at top.
>
> If I can not do this easly, how can I change the color of the border of
the validated field so it would trun red. I have some logic that I write to
validate, if a check box is ENABLED, then the next textbox must contain
text. If the check box is ENABLED and the textbox =null (=""), then I would
like the textbox to turn red after validation, or turn an "Asterisk" red to
show where the field is located.
>
> Turning the textbox red would be OK for me since most of the validation
for fields is done in custom code. I would like control that property when
the page is re-rendered based on failure of validation.
>
> Can the control of the textbox borders be done in .asp/VBScript through
code? /mw
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.