Click to See Complete Forum and Search --> : Required Field Validator


jonah_taxt
September 7th, 2004, 11:42 AM
Hi everyone.

I'm using a required field validator for my application. The thing is that I want the Validator to appear as a label and then change to red if something is wrong.

The problem is that I've inserted some text to the field validator (requiredfieldvalidator.text = "UserName") but when I load the page, the label doesn't show up.

The visible attribute is set to true.

Does anyone know if this is possible?

Thanx for any replies :)

MRutledge
September 8th, 2004, 10:35 AM
I dont think you can have a required field validator show up before validation occurs. What you can do is on validation you could change the color of the label to red, or what I would recommend is just have the text of your validator appear next to the label in red.

jonah_taxt
September 8th, 2004, 02:27 PM
mmm I thought so... thanx matt :)