PC Review


Reply
Thread Tools Rate Thread

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

 
 
Pasta Bolognese
Guest
Posts: n/a
 
      5th May 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
 
      10th May 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: (E-Mail Removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Pasta Bolognese" <(E-Mail Removed)> wrote in message
news:0Ubmc.8267$(E-Mail Removed)...
>
> 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
Rate This Thread
Rate This Thread:

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 to trigger a validation change thomas donino Microsoft Excel Programming 3 28th Aug 2009 10:36 AM
How can I change a property of a control form Form2 ? =?Utf-8?B?QWxp?= Microsoft VB .NET 6 19th Jun 2006 01:08 PM
change control property on inherited form from base form ajwalters@gmail.com Microsoft Dot NET Framework Forms 1 20th Apr 2006 03:37 PM
Can a validation control trigger an property change on a web form? Pasta Bolognese Microsoft ASP .NET 1 10th May 2004 07:13 PM
How to change the control property on another form? Suresh Kumar Microsoft Dot NET Framework Forms 1 26th Sep 2003 12:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:27 PM.