Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Can a validation control trigger an property change on a web form?

Reply
Thread Tools

Can a validation control trigger an property change on a web form?

 
 
Pasta Bolognese
Guest
Posts: n/a
 
      05-05-2004

I am using a Required Field validator control in a web form.

If the control is /triggered/ can it change a property in the field?

What I want to do is:

If the value in the INPUT is not valid, set the background color to
yellow based on the required field.

 
Reply With Quote
 
 
 
 
Peter Blum
Guest
Posts: n/a
 
      05-10-2004
Not without writing a hack. The Microsoft validators only know how to show
and hide a <span> tag containing the ErrorMessage. You want to provide
another way to get the users attention.

My product "Professional Validation And More"
(http://www.peterblum.com/vam/home.aspx) is a replacement to Microsoft's
validators that overcomes its limitations. It includes several ways to get
the user's attention: changing the color/style of the field, label or
region, show an alert, blink the error, and set focus to the field with the
error.

--- Peter Blum
www.PeterBlum.com
Email:
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Pasta Bolognese" <> wrote in message
news:0Ubmc.8267$ ink.net...
>
> I am using a Required Field validator control in a web form.
>
> If the control is /triggered/ can it change a property in the field?
>
> What I want to do is:
>
> If the value in the INPUT is not valid, set the background color to
> yellow based on the required field.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can the change of second window trigger change of first window xhe Javascript 1 02-09-2007 06:16 PM
How could I change the NavigateUrl property at runtime based on another controls property ? Radu ASP .Net 2 01-25-2007 10:51 AM
How can I trigger an event handler when a property changes? Sam Kong Javascript 1 10-23-2006 04:33 PM
can JavaScript change web form control property? =?Utf-8?B?ZGF2aWQ=?= ASP .Net 3 03-20-2006 06:10 PM
can user control change its child control's property using javascript? chaoy@pacbell.net ASP .Net Building Controls 0 08-25-2003 02:31 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57