How to set validator visible by default?

  • Thread starter Thread starter TomislaW
  • Start date Start date
T

TomislaW

I would like to set requiredfieldvalidator text property to red '*', but he
is invisible by default, only when I click on button he became visible. I
would like to have him visible by default, before I click button.

Is this possible?
 
You could call Page.Validate() from Page_Load when IsPostBack == false. Or
if you just want an individual control to be red, then call YourValidationControl.Validate(),
again from Page_Load when IsPostBack == false;

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
very nice solution
thanx

tomislaw

Brock Allen said:
You could call Page.Validate() from Page_Load when IsPostBack == false. Or
if you just want an individual control to be red, then call
YourValidationControl.Validate(), again from Page_Load when IsPostBack ==
false;

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Back
Top