SPContext.ItemId property
SharePoint 2013
Gets the ID of the item that is associated with the Microsoft SharePoint Foundation context.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Gets the ID of the item that is associated with the Microsoft SharePoint Foundation context.