Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a page which has many labels and text boxes with different validations like Required Field, regularexpression, compare etc, i want all the required field to appear in the Validation Summary, where as the others at the side of the respective text box, how can this be achieved?
Posted
Comments
Thanks7872 23-Oct-13 8:22am    
http://www.lmgtfy.com/?q=validation+summary+in+asp.net+c%23

About 551,000 results in 0.37 seconds.

If you have particular issue,post it.

This link may be help you

Exploring ASP.NET Validation Controls[^]
 
Share this answer
 
 
Share this answer
 
Assign all the RequiredFieldValidators a unique Validation Group suppose GroupReq....

Than add up a validation summary with same validation Group on the page and put all the required fieldvalidators under that validation summary.

Assign same validation Group to Button/Control on which you want to call validation summary like submit button.

In this way all required field validators will be called under validation summary on button click and rest of the validators(RegularExpression Validator etc) will be shown on their respective places while using those controls, i.e textbox etc...


Hope that will help.
 
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