Click here to Skip to main content
15,511,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i use a validator then how can i show the error of validator in a label?
Farhan Ghumra 15-Jun-12 7:47am    
are you using or Silverlight
Manjit Sidhu 15-Jun-12 7:57am
Farhan Ghumra 15-Jun-12 8:05am    
right now where is showing error message ?
Manjit Sidhu 15-Jun-12 8:12am    
i used a required field validator for a text box and when text box is empty and i click on save button then it shows an error message on the top of window but i want to use a label and show that error massage in that label...
so plz tell me how can i do it?

1 solution

you have to design your text box and required field validator like this text box required field validator so it will display

How to: Control Validation Error Message Display for ASP.NET Server Controls[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900