O'Reilly logo

.NET Framework 4.5 Expert Programming Cookbook by A.P. Rajshekhar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Saving a draft of a user registration page using HTML5 client storage

HTML5 has introduced the concept of client storage. A HTML5 enabled browser can save up to 10 MB of data on the client side. The data will be stored in the form of name-value pairs. This storage is accessible via JavaScript. Even though ASP.NET 4.5 does not include controls that take advantage of this functionality, we can make use of JavaScript within an ASPX page to access the local storage.

In this recipe we will enhance the registration form by adding a save as draft functionality. Save as draft functionality will make use of HTML5 client storage and JavaScript to save the data entered by the user on his/her machine itself, which can be loaded later whenever required.

How ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required