views:

37

answers:

3

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>
+1  A: 

So it will still validate the control but will not show any message.

Azhar
A: 

Whenver your control have invalid values and validation occurs your RequiredFieldValidator will show a *.

Sidharth Panwar
it does not show *
Azhar
Doesn't it provide a default *???
Sidharth Panwar
+1  A: 

Yes it will still validate. Why not spend 5 mins trying it out?

m.edmondson