Ways to Pass HTML5 Web Storage Data to ASP.NET

HTML5 web storage data allows you to store data on the client side. But unlike cookies, this data is not passed to the server automatically with every request-response cycle. To pass this data you need to program a few code. There are two ways in which a data transfer can be facilitated – hidden form field and Ajax call. This article will explain how to use these techniques.

The first approach uses postback and a hidden form field to pass data to the server. The second approach involves an AJAX call to a web method to pass client side data.

Each method works at its best, so what you use is based on which are you more comfortable in using.

Read the rest of the post here: http://www.codeguru.com/csharp/.net/two-ways-of-passing-html5-web-storage-data-to-asp.net.htm

Leave a Reply

Your email address will not be published. Required fields are marked *