Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.