Click here to Skip to main content
14,695,609 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi I need to validate a field befor skip to the next field mvc2, not at post or action time.

Take a look at this Asp.NET MVC validation control.Classic Validation Controls for ASP.NET MVC[^]
hosam Taji 9-Jul-11 13:13pm
Thank you
Wonde Tadesse 9-Jul-11 13:52pm
You're most welcome.
You should validate the field with javascript. Using javascript will allow you to validate the fields on the client side before you post back to the server.

[Edit]To learn about javascript field validation you can do a simple google search. This particular tutorial seems quite clear and easy to follow.[/Edit]
hosam Taji 7-Jul-11 1:40am
Dear can you please give me an example or steps to do so.
#realJSOP 7-Jul-11 15:59pm
You honestly can't work this out on your own, even after being given help?
fjdiewornncalwe 7-Jul-11 22:23pm
Use the power behind the allmighty google. I have provided you with a link to the simplest of simple tutorials on javascript validation. If you can't figure it out from that tutorial, then perhaps you need to reevaluate whether you want to be a developer.

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