SPFormContext Class
SharePoint 2010
Provides information about the context that is specific to a list item form.
Namespace:
Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Use the FormContext property of the SPContext class to get the context of the current form.