userData Behavior

This sample demonstrates how persistence is used to preserve information in an XML store. The userData behavior is a major evolution for client-side data over cookies.

The userData Behavior writes object information into an XML store explicitly using the load and save methods. Object information is set using the setAttribute, removeAttribute, and getAttribute methods.

Enter some text in the field below, then click the Save Data button. Click the browser's Back button and save this page as a favorite or to a disk. When you return to this page by clicking the Forward button, loading the favorite, or loading this page from disk, click the Load Data button to see the form field's persistence within an XML store.

Status:


Enter some text:



© 2007 Microsoft Corporation. All rights reserved. Terms of use.