November Happy Hour will be moved to Thursday December 5th.

Episerver forms event handler client side or server side

Vote:
 

We are going through this documentation https://world.episerver.com/documentation/developer-guides/forms/handling-events-for-forms/ for episerver forms event handling and we have client side and server side techniques specified in this document.

Can anybody help us understand benefit handling events in either way?

#207345
Sep 17, 2019 13:57
Vote:
 

https://www.google.com/search?q=client+side+validation+vs+server+side+validation&oq=client+side+validation+vs&aqs=chrome.1.69i57j0l3.10618j0j7&client=ms-android-google&sourceid=chrome-mobile&ie=UTF-8

#207377
Sep 17, 2019 19:13
Vote:
 

One important reason is to reduce number of calls to server and handle the logic at client side that don't need server interaction. One of them is the validation of form fields. Similar to that for server side on a login form you validate if a user exist with the username entered.

So, it's all about the performance thing. Try to handle the logic more on client end so that you can reduce the burden on server to increase performance (by reducing number of calls to server).

#207384
Sep 18, 2019 8:45
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.