– How to post data from JS to C# – Education Career Blog

I have Jquery & ASP.NET server side.
I am looking for a way to safely post data from a client to the server and vise versa without worrying of special characters like “,’~ etc…
Is JSON a better way?



Whatever you choose will need to be encoded for transport. If you just put the data into the URL, you should URL encode the data, if you put in JSON, you still need to escape ” if the data is in a string.

Leave a Comment