Export (0) Print
Expand All

Microsoft.SharePoint.WebControls namespace

Contains ASP.NET server controls that are used on site and list pages in a SharePoint site.

The major class, SPControl, provides methods for getting or setting the context of requests and serves as the base class from which other controls in this namespace derive.

All classes in this namespace require that a page directive like the following be included in the ASPX page containing the control:

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" 
   Assembly="Microsoft.SharePoint, Version=, Culture=neutral, 
   PublicKeyToken=71e9bce111e9429c" %>

You can obtain the PublicKeyToken value for the current Windows SharePoint Services deployment from the default.aspx file in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\SiteTemplates\STS folder, or from information provided for the Microsoft.SharePoint assembly at Local_Drive:\%WINDOWS%\assembly in Windows Explorer.

Public enumerationSPControlModeSpecifies the mode of the control.
Public enumerationSPDataSourceModeUsed to specify the type of data that a data-bound SharePoint Foundation control should query.
Public enumerationSPServiceApplicationProxyGroupAssociationElementType
© 2014 Microsoft