Which will fire first?Validation controls or Standard controls

Posted by Oswaldlily under ASP.NET on 4/26/2013 | Points: 10 | Views : 745 | Status : [Member] | Replies : 1
<asp:label > message & <asp:requiredfieldvalidator> message
which ll fire first and why?




Responses

Posted by: Raj.Trivedi on: 4/26/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi

The question you asked has situation base answer if you have a label that needs to display an error message after the method has executed then the required field validator will fire first because as soon as the focus has been lost from a control the validator will automatically check whether the control has value or not.

In general situation Required field validator will fire first

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response