Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ItemIdAsString property

SPContext.ItemIdAsString property

Gets or sets a string value for the ID of the list item that is associated with the request context.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public string ItemIdAsString { get; set; }

Property value

Type: System.String
A string value for the ID of the list item that is associated with the page. When the page is not associated with a list item, the value “0” is returned.

When this property is set, the ItemId property is set to InvalidItemId.

Show:
© 2015 Microsoft