i have an html table which has asp.net textbox controls , total 50 boxes , so these all needs "Field Required" validators but it would take alot of time to do so and also i dont want the validation error message to appear next to each box, i want them all at one place , somewhere below table,
so isn't there any alternative to do it quicky mean to save time ?

Recommended Answers

All 3 Replies

If you take a look at the validation controls in visual studio, there is a summary control that you can use to provide a summary display say at the bottom. However, as far as I know, you still need to implement validation for each one of them.

Now, outside of asp.net controls, I suspect that you can write your own validation via JavaScript and during the validation process, run through some sort of loop to validate your input elements.

ok ok ....custom validator is the soulution
thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.