Hi,
I need to display the same page when an error occurs in the page. For example, I am validating a few fields in a page. If an error occurs, then same page is to be displayed.
I am presently using MVC type programming.
Thanks in advance.
Regards,
Vara
Are they form fields? Do you want to cancel submit when a error in input field detected?
set <b>htmlbevent.cancelSubmit = true</b> in your validation javascript.
Regards
Raja
Hi,
you can use different types of validation:
*) Client-Side using javascript:
if you do it that way, you don't have to change the page being displayed
*) Server-Side:
Depending on the return status of your validation, just call the controller/view containing your input form again, many different ways to do so (depending on whether you use a model class or not, if you use data binding, ...)
Add a comment