Last post Sep 19, 2011 05:25 AM by tarun n juneja
Sep 19, 2011 04:32 AMemail@example.com|LINK
I am doing localization for Required Filed Validator
<asp:RequiredFieldValidator ID="CustomerRQF" runat="server"
I have the two resourcekey
1 = Customerreq.Required = "You Must Enter Name"
2 = Customerreq.Text = *
Normaly I am putting the Required Filed near to text box to show red star (*) to user that this field is missing or required.
and validation summry in down to show the error msg
but in the case of localization , if I set the resourcekey = Customerreq.Required , I will get the msg and If I set Customerreq.Text or Customerreq I will Get * only
What is the Solution.
Sep 19, 2011 04:34 AM|tarun n juneja|LINK
Property name is wrong...
it is ErrorMessage not Required
Customerreq.ErrorMessage = "You Must Enter Name"
Sep 19, 2011 05:18 AMfirstname.lastname@example.org|LINK
I want the text of Required Filed to show *
and error msg You Must enter ....
means two value for two diffrent thing
Sep 19, 2011 05:25 AM|tarun n juneja|LINK
You can do it
Customerreq.Text = "*"
the error message will be shown if you will add a validation summary on your page...