SPContext.ContextPageInfo property
SharePoint 2013
Gets the information about the current list item for the current request (if there is one). For example, information could include the item ID, if it is a welcome page, or the base permissions of the object.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)