Share via


Identity Element (View)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Used in a New or Edit form to render hidden fields used by the form.

<Identity>
</Identity>

Attributes

Attribute

Description

None

N/A

Child Elements

None

Parent Elements

Numerous

Occurrences

Minimum: 0

Maximum: Unbounded

Remarks

The Identity element renders a set of hidden <INPUT> tags that allow the server to identify which item is being edited when a form is submitted, the version of the item, and the time that the item was last modified (in the case of a document library) for multiuser conflict detection.

Example

The Identity element renders the following <INPUT> tags for the Edit form of the first announcement in the built-in announcements list. These values are posted back to the server when a form is submitted so that the server knows the list, as well as the row, to which the POST refers. The NAME attribute's owshiddenversion value is used for conflict detection.

<INPUT ID=onetidIOHidden TYPE=HIDDEN NAME="List" VALUE="Announcements">
<INPUT ID=onetidIOHidden TYPE=HIDDEN NAME="ID" VALUE="1">
<INPUT ID=onetidIOHidden TYPE=HIDDEN NAME="owshiddenversion" VALUE="0">