Reputation: 11
If i do not set error message in required field validator, will it display msg pop up box or not? my code-
<asp:RequiredFieldValidator runat="server" SetFocusOnError="true"
ValidationGroup="Search" ID="RFV_ddlTimeSlot" Display="None"
ControlToValidate="ddlTimeSlot" InitialValue="--Select Time Slot--"
ErrorMessage=""></asp:RequiredFieldValidator>
Upvotes: 1
Views: 437
Reputation: 30872
Yes it will still validate. Why not spend 5 mins trying it out?
Upvotes: 2
Reputation: 4654
Whenver your control have invalid values and validation occurs your RequiredFieldValidator will show a *****.
Upvotes: 1
Reputation: 20670
So it will still validate the control but will not show any message.
Upvotes: 1