senzacionale
senzacionale

Reputation: 20916

all validators executed when page is loaded

Can i run all validators when page is loaded. I need to show * in all input text fields that are necessary. I have require field validators for that fields, can i run it by default when page is loaded?

Upvotes: 0

Views: 201

Answers (2)

Frédéric Hamidi
Frédéric Hamidi

Reputation: 263047

Calling Page.Validate() during your Load phase should do the trick.

Upvotes: 2

Ohad Schneider
Ohad Schneider

Reputation: 38142

For WinForms you have ValidateChildren, would it work for webforms?

Upvotes: 0

Related Questions