I am not sure what application you are using here either. I am assuming you are using MVC. From the front end, you simply keep your controls in a form and serialize this form data using Jquery Serialize() API (https://api.jquery.com/serialize/).
Once this is done, on the controller end, the POST action needs to decorate with ValidateInput(false). ValidateInput(false) attribute is used to allow sending HTML content or codes to the server which by default is disabled by ASP.Net MVC to avoid XSS (Cross-Site Scripting) attacks.
Nisha RegilPosted Dec 13, 2021, 6:49 AM
Sai Kumar KoonaPosted Dec 13, 2021, 8:09 AM