Pages

10/10/2010

Using SharePoint Web Controls

 

If you are doing SharePoint development, you probably want to keep the SharePoint look and feel for common ASP.NET controls such as GridView, and use the SharePoint unique controls like the People Picker. Like many things in an API, your first challenge is finding just what is available.  Below (mostly for my own future reference) is a list of the web controls found in Microsoft.SharePoint.DLL (Windows® SharePoint Server). 

PowerShell to the rescue… I did not hand type all of the following. I just used this little PowerShell script:

$c = [System.Reflection.Assembly]::loadwithpartialname("Microsoft.SharePoint")

$c.GetTypes() | where {$_.BaseType -Like "Microsoft.SharePoint.WebControls.*"} | select basetype, name | sort name,basetype 

 

Microsoft MSDN documentation can be found here:

2007:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols%28v=office.12%29.aspx

2010:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.aspx

 

 

SP 2007 Web Controls ordered by Base Type

 

All of the following are in Microsoft.SharePoint.WebControls (i.e. Microsoft.SharePoint.WebControls.ActionsMenu)

BaseType                    Name                                                      
--------                    ----                                                      
.ActionsMenu                GlobalGalleryActionsMenu                                  
.ActionsMenu                MWSActionsMenu                                            
.AdministrationDataSourc... DataTableDataSourceView                                   
.AlphaImage                 ViewIcon                                                  
.ApprovalButton             DistributionListsApprovalButton                           
.BaseChoiceField            CheckBoxChoiceField                                       
.BaseChoiceField            DropDownChoiceField                                       
.BaseChoiceField            RadioButtonChoiceField                                    
.BaseFieldControl           AllDayEventField                                          
.BaseFieldControl           AttachmentsField                                          
.BaseFieldControl           AttendeeField                                             
.BaseFieldControl           BaseChoiceField                                           
.BaseFieldControl           BaseTextField                                             
.BaseFieldControl           BooleanField                                              
.BaseFieldControl           CalculatedField                                           
.BaseFieldControl           ComputedField                                             
.BaseFieldControl           CrossProjectLinkField                                     
.BaseFieldControl           DateTimeField                                             
.BaseFieldControl           FieldValue                                                
.BaseFieldControl           FileField                                                 
.BaseFieldControl           FormField                                                 
.BaseFieldControl           LookupField                                               
.BaseFieldControl           ParentInformationField                                    
.BaseFieldControl           RatingScaleField                                          
.BaseFieldControl           RecurrenceField                                           
.BaseFieldControl           UrlField                                                  
.BaseFieldControl           UserField                                                 
.BaseNumberField            CurrencyField                                             
.BaseNumberField            NumberField                                               
.BaseTextField              BaseNumberField                                           
.BaseTextField              NoteField                                                 
.BaseTextField              TextField                                                 
.BaseXmlDataSource          SoapDataSource                                            
.BaseXmlDataSource          SPXmlDataSource                                           
.BaseXmlDataSource          XmlUrlDataSource                                          
.ContextSelector`1[Micro... SiteAdministrationSelector                                
.ContextSelector`1[T]       PersistedObjectContextSelector`1                          
.DailyCalendarView          WeeklyCalendarView                                        
.DatePicker                 MonthPicker                                               
.EditItemButton             WikiEditButton                                            
.EditItemButton             WikiEditItemButton                                        
.EntityEditor               EntityEditorWithPicker                                    
.EntityEditorWithPicker     PeopleEditor                                              
.FieldMetadata              AppendOnlyHistory                                         
.FieldMetadata              BaseFieldControl                                          
.FieldMetadata              CompositeField                                            
.FieldMetadata              FieldDescription                                          
.FieldMetadata              FieldLabel                                                
.FieldMetadata              FieldProperty                                             
.FileField                  WikiFileField                                             
.FormButton                 AlertMeButton                                             
.FormButton                 ApprovalButton                                            
.FormButton                 AttachmentButton                                          
.FormButton                 ChangePasswordButton                                      
.FormButton                 CheckInCheckOutButton                                     
.FormButton                 ClaimReleaseTaskButton                                    
.FormButton                 DeleteItemButton                                          
.FormButton                 DeleteItemVersionButton                                   
.FormButton                 EditItemButton                                            
.FormButton                 EditSeriesButton                                          
.FormButton                 EnterFolderButton                                         
.FormButton                 ExportWebPartButton                                       
.FormButton                 ManageCopiesButton                                        
.FormButton                 ManagePermissionsButton                                   
.FormButton                 MyAlertsButton                                            
.FormButton                 MyRegionalSettingsButton                                  
.FormButton                 NewItemButton                                             
.FormButton                 RestoreItemVersionButton                                  
.FormButton                 UserInfoListDeleteItemButton                              
.FormButton                 UserInfoListEditItemButton                                
.FormButton                 VersionHistoryButton                                      
.FormButton                 ViewWebPartXmlButton                                      
.FormButton                 WikiIncomingLinksButton                                   
.FormButton                 WikiPageHistoryButton                                     
.FormButton                 WorkflowsButton                                           
.FormComponent              ApprovalMessage                                           
.FormComponent              ApprovalStatus                                            
.FormComponent              AssignToEmailMessage                                      
.FormComponent              AttachmentUpload                                          
.FormComponent              AttendeeEmailResponse                                     
.FormComponent              BackLinksIterator                                         
.FormComponent              ChangeContentType                                         
.FormComponent              CopySourceInfo                                            
.FormComponent              CopySourceUrlInfo                                         
.FormComponent              CreatedModifiedInfo                                       
.FormComponent              CreationType                                              
.FormComponent              DiffSelectorIterator                                      
.FormComponent              DocumentLibraryFields                                     
.FormComponent              DocumentTransformersInfo                                  
.FormComponent              EmailCalendarMessage                                      
.FormComponent              FieldMetadata                                             
.FormComponent              FileUploadedMessage                                       
.FormComponent              FolderFormFields                                          
.FormComponent              FormToolBar                                               
.FormComponent              GoBackButton                                              
.FormComponent              GoToCopySourceLink                                        
.FormComponent              InformationBar                                            
.FormComponent              InitContentType                                           
.FormComponent              ItemHiddenVersion                                         
.FormComponent              ListFieldIterator                                         
.FormComponent              NextPageButton                                            
.FormComponent              RequiredFieldMessage                                      
.FormComponent              SaveButton                                                
.FormComponent              UnlinkCopyButton                                          
.FormComponent              UserInfoListFormToolBar                                   
.FormComponent              VersionDiff                                               
.FormComponent              WebPartPageMaintenanceMessage                             
.FormComponent              WorkflowForm                                              
.FormDigest                 SPMobileFormDigest                                        
.GoBackButton               MultiPageGoBackButton                                     
.HtcMenu                    SPMenu                                                    
.HtcMenuItem                HtcMenuOption                                             
.HtcMenuItem                HtcMenuSeparator                                          
.HtcMenuItem                HtcSubMenu                                                
.HtcMenuOption              SPMenuOption                                              
.IDataSourceConsumer        MergedDataSource                                          
.IDataSourceConsumer        SingleDataSource                                          
.InputFormCustomValidator   UrlValidator                                              
.InputFormRequiredFieldV... PasswordTextBoxValidator                                  
.LayoutsPageBase            ContentsPage                                              
.ListFieldIterator          SurveyFieldIterator                                       
.ListFieldIterator          VersionDiffIterator                                       
.ListViewSelector           MWSListViewSelector                                       
.LookupField                MultipleLookupField                                       
.MenuTemplate               FeatureMenuTemplate                                       
.MergedDataSource           ASyncMergedDataSource                                     
.MergedDataSource           SyncMergedDataSource                                      
.NewMenu                    MWSNewMenu                                                
.NoteField                  RichTextField                                             
.OWSControl                 OWSDateField                                              
.OWSControl                 OWSNumberField                                            
.OWSControl                 OWSSubmitButton                                           
.PersistedObjectContextS... ServerSelector                                            
.PersistedObjectContextS... WebApplicationSelector                                    
.PickerDialog               PeoplePickerDialog                                        
.PickerQueryControlBase     SimpleQueryControl                                        
.PickerResultControlBase    TableResultControl                                        
.RenderingTemplateContainer SPCalendarContainer                                       
.RenderingTemplateContainer SPCalendarItemContainer                                   
.RenderingTemplateContainer SPCalendarTabContainer                                    
.RepeatedControls           GenericInformationBar                                     
.SaveButton                 PublishButton                                             
.SaveButton                 SaveAsDraftButton                                         
.SaveButton                 SubmitCommentButton                                       
.SettingsMenu               MWSSettingsMenu                                           
.SimpleQueryControl         PeopleQueryControl                                        
.SingleDataSource           ColumnMergedDataSource                                    
.SPCalendarBase             DailyCalendarView                                         
.SPCalendarBase             MonthlyCalendarView                                       
.SPCompositeControl         DateTimeControl                                           
.SPCompositeControl         RecurrenceDataControl                                     
.SPControl                  AlphaImage                                                
.SPControl                  BpScript                                                  
.SPControl                  CssLink                                                   
.SPControl                  CssRegistration                                           
.SPControl                  CustomJSUrl                                               
.SPControl                  DelegateControl                                           
.SPControl                  FormattedString                                           
.SPControl                  FormDigest                                                
.SPControl                  GroupPermissions                                          
.SPControl                  ListFormPageTitle                                         
.SPControl                  ListItemProperty                                          
.SPControl                  ListProperty                                              
.SPControl                  Navigation                                                
.SPControl                  OWSControl                                                
.SPControl                  OWSForm                                                   
.SPControl                  PortalConnection                                          
.SPControl                  PreReleaseFeedback                                        
.SPControl                  ProjectProperty                                           
.SPControl                  RelatedTasks                                              
.SPControl                  ReturnLink                                                
.SPControl                  RobotsMetaTag                                             
.SPControl                  RssLink                                                   
.SPControl                  ScriptLink                                                
.SPControl                  SoapDiscoveryLink                                         
.SPControl                  SPCalendarNavigator                                       
.SPControl                  TemplateBasedControl                                      
.SPControl                  Theme                                                     
.SPControl                  UrlRedirector                                             
.SPControl                  ViewSearchForm                                            
.SPControl                  ViewSelector                                              
.SPDatePickerControl        SPMonthPickerControl                                      
.SPHelpControlBase          SPHelpBrowserControl                                      
.SPHelpControlBase          SPHelpPagingBarControl                                    
.SPHelpControlBase          SPHelpSearchResultsControl                                
.SPLinkButton               FormButton                                                
.SPLinkButton               MergeButton                                               
.SPLinkButton               RelinkButton                                              
.SPLinkButton               SPToolBarButton                                           
.SPSecurityTrimmedControl   SPLinkButton                                              
.SSOProcessor               SQLSSOProcessor                                           
.SSOProcessor               XMLSSOProcessor                                           
.TemplateBasedControl       FormComponent                                             
.TemplateBasedControl       ListViewSelector                                          
.TemplateBasedControl       PagingButton                                              
.TemplateBasedControl       RecentChangesIterator                                     
.TemplateBasedControl       RecentChangesMenu                                         
.TemplateBasedControl       TemplateContainer                                         
.TemplateBasedControl       ToolBarMenuButton                                         
.TemplateBasedControl       ViewToolBar                                               
.ToolBarMenuButton          ActionsMenu                                               
.ToolBarMenuButton          AllContentsViewSelectorMenu                               
.ToolBarMenuButton          NewMenu                                                   
.ToolBarMenuButton          PersonalActions                                           
.ToolBarMenuButton          SettingsMenu                                              
.ToolBarMenuButton          SiteActions                                               
.ToolBarMenuButton          UploadMenu                                                
.ToolBarMenuButton          ViewSelectorMenu                                          
.UnsecuredLayoutsPageBase   LayoutsPageBase                                           
.UpdateableHierarchicalView SPXmlHierarchicalDataSourceView                           
.UpdateableHierarchicalView XmlUrlHierarchicalDataSourceView                          
.UrlValidator               UrlNameValidator                                          
.UrlValidator               UrlPathValidator                                          
.ViewSelectorMenu           MWSViewSelectorMenu                                       

 

SP 2007 Web Controls ordered by Name

 

All of the following are in Microsoft.SharePoint.WebControls (i.e. Microsoft.SharePoint.WebControls.ActionsMenu)

BaseType                    Name                                                      
--------                    ----                                                      
.ToolBarMenuButton          ActionsMenu                                               
.FormButton                 AlertMeButton                                             
.ToolBarMenuButton          AllContentsViewSelectorMenu                               
.BaseFieldControl           AllDayEventField                                          
.SPControl                  AlphaImage                                                
.FieldMetadata              AppendOnlyHistory                                         
.FormButton                 ApprovalButton                                            
.FormComponent              ApprovalMessage                                           
.FormComponent              ApprovalStatus                                            
.FormComponent              AssignToEmailMessage                                      
.MergedDataSource           ASyncMergedDataSource                                     
.FormButton                 AttachmentButton                                          
.BaseFieldControl           AttachmentsField                                          
.FormComponent              AttachmentUpload                                          
.FormComponent              AttendeeEmailResponse                                     
.BaseFieldControl           AttendeeField                                             
.FormComponent              BackLinksIterator                                         
.BaseFieldControl           BaseChoiceField                                           
.FieldMetadata              BaseFieldControl                                          
.BaseTextField              BaseNumberField                                           
.BaseFieldControl           BaseTextField                                             
.BaseFieldControl           BooleanField                                              
.SPControl                  BpScript                                                  
.BaseFieldControl           CalculatedField                                           
.FormComponent              ChangeContentType                                         
.FormButton                 ChangePasswordButton                                      
.BaseChoiceField            CheckBoxChoiceField                                       
.FormButton                 CheckInCheckOutButton                                     
.FormButton                 ClaimReleaseTaskButton                                    
.SingleDataSource           ColumnMergedDataSource                                    
.FieldMetadata              CompositeField                                            
.BaseFieldControl           ComputedField                                             
.LayoutsPageBase            ContentsPage                                              
.FormComponent              CopySourceInfo                                            
.FormComponent              CopySourceUrlInfo                                         
.FormComponent              CreatedModifiedInfo                                       
.FormComponent              CreationType                                              
.BaseFieldControl           CrossProjectLinkField                                     
.SPControl                  CssLink                                                   
.SPControl                  CssRegistration                                           
.BaseNumberField            CurrencyField                                             
.SPControl                  CustomJSUrl                                               
.SPCalendarBase             DailyCalendarView                                         
.AdministrationDataSourc... DataTableDataSourceView                                   
.SPCompositeControl         DateTimeControl                                           
.BaseFieldControl           DateTimeField                                             
.SPControl                  DelegateControl                                           
.FormButton                 DeleteItemButton                                          
.FormButton                 DeleteItemVersionButton                                   
.FormComponent              DiffSelectorIterator                                      
.ApprovalButton             DistributionListsApprovalButton                           
.FormComponent              DocumentLibraryFields                                     
.FormComponent              DocumentTransformersInfo                                  
.BaseChoiceField            DropDownChoiceField                                       
.FormButton                 EditItemButton                                            
.FormButton                 EditSeriesButton                                          
.FormComponent              EmailCalendarMessage                                      
.FormButton                 EnterFolderButton                                         
.EntityEditor               EntityEditorWithPicker                                    
.FormButton                 ExportWebPartButton                                       
.MenuTemplate               FeatureMenuTemplate                                       
.FieldMetadata              FieldDescription                                          
.FieldMetadata              FieldLabel                                                
.FormComponent              FieldMetadata                                             
.FieldMetadata              FieldProperty                                             
.BaseFieldControl           FieldValue                                                
.BaseFieldControl           FileField                                                 
.FormComponent              FileUploadedMessage                                       
.FormComponent              FolderFormFields                                          
.SPControl                  FormattedString                                           
.SPLinkButton               FormButton                                                
.TemplateBasedControl       FormComponent                                             
.SPControl                  FormDigest                                                
.BaseFieldControl           FormField                                                 
.FormComponent              FormToolBar                                               
.RepeatedControls           GenericInformationBar                                     
.ActionsMenu                GlobalGalleryActionsMenu                                  
.FormComponent              GoBackButton                                              
.FormComponent              GoToCopySourceLink                                        
.SPControl                  GroupPermissions                                          
.HtcMenuItem                HtcMenuOption                                             
.HtcMenuItem                HtcMenuSeparator                                          
.HtcMenuItem                HtcSubMenu                                                
.FormComponent              InformationBar                                            
.FormComponent              InitContentType                                           
.FormComponent              ItemHiddenVersion                                         
.UnsecuredLayoutsPageBase   LayoutsPageBase                                           
.FormComponent              ListFieldIterator                                         
.SPControl                  ListFormPageTitle                                         
.SPControl                  ListItemProperty                                          
.SPControl                  ListProperty                                              
.TemplateBasedControl       ListViewSelector                                          
.BaseFieldControl           LookupField                                               
.FormButton                 ManageCopiesButton                                        
.FormButton                 ManagePermissionsButton                                   
.SPLinkButton               MergeButton                                               
.IDataSourceConsumer        MergedDataSource                                          
.SPCalendarBase             MonthlyCalendarView                                       
.DatePicker                 MonthPicker                                               
.GoBackButton               MultiPageGoBackButton                                     
.LookupField                MultipleLookupField                                       
.ActionsMenu                MWSActionsMenu                                            
.ListViewSelector           MWSListViewSelector                                       
.NewMenu                    MWSNewMenu                                                
.SettingsMenu               MWSSettingsMenu                                           
.ViewSelectorMenu           MWSViewSelectorMenu                                       
.FormButton                 MyAlertsButton                                            
.FormButton                 MyRegionalSettingsButton                                  
.SPControl                  Navigation                                                
.FormButton                 NewItemButton                                             
.ToolBarMenuButton          NewMenu                                                   
.FormComponent              NextPageButton                                            
.BaseTextField              NoteField                                                 
.BaseNumberField            NumberField                                               
.SPControl                  OWSControl                                                
.OWSControl                 OWSDateField                                              
.SPControl                  OWSForm                                                   
.OWSControl                 OWSNumberField                                            
.OWSControl                 OWSSubmitButton                                           
.TemplateBasedControl       PagingButton                                              
.BaseFieldControl           ParentInformationField                                    
.InputFormRequiredFieldV... PasswordTextBoxValidator                                  
.EntityEditorWithPicker     PeopleEditor                                              
.PickerDialog               PeoplePickerDialog                                        
.SimpleQueryControl         PeopleQueryControl                                        
.ContextSelector`1[T]       PersistedObjectContextSelector`1                          
.ToolBarMenuButton          PersonalActions                                           
.SPControl                  PortalConnection                                          
.SPControl                  PreReleaseFeedback                                        
.SPControl                  ProjectProperty                                           
.SaveButton                 PublishButton                                             
.BaseChoiceField            RadioButtonChoiceField                                    
.BaseFieldControl           RatingScaleField                                          
.TemplateBasedControl       RecentChangesIterator                                     
.TemplateBasedControl       RecentChangesMenu                                         
.SPCompositeControl         RecurrenceDataControl                                     
.BaseFieldControl           RecurrenceField                                           
.SPControl                  RelatedTasks                                              
.SPLinkButton               RelinkButton                                              
.FormComponent              RequiredFieldMessage                                      
.FormButton                 RestoreItemVersionButton                                  
.SPControl                  ReturnLink                                                
.NoteField                  RichTextField                                             
.SPControl                  RobotsMetaTag                                             
.SPControl                  RssLink                                                   
.SaveButton                 SaveAsDraftButton                                         
.FormComponent              SaveButton                                                
.SPControl                  ScriptLink                                                
.PersistedObjectContextS... ServerSelector                                            
.ToolBarMenuButton          SettingsMenu                                              
.PickerQueryControlBase     SimpleQueryControl                                        
.IDataSourceConsumer        SingleDataSource                                          
.ToolBarMenuButton          SiteActions                                               
.ContextSelector`1[Micro... SiteAdministrationSelector                                
.BaseXmlDataSource          SoapDataSource                                            
.SPControl                  SoapDiscoveryLink                                         
.RenderingTemplateContainer SPCalendarContainer                                       
.RenderingTemplateContainer SPCalendarItemContainer                                   
.SPControl                  SPCalendarNavigator                                       
.RenderingTemplateContainer SPCalendarTabContainer                                    
.SPHelpControlBase          SPHelpBrowserControl                                      
.SPHelpControlBase          SPHelpPagingBarControl                                    
.SPHelpControlBase          SPHelpSearchResultsControl                                
.SPSecurityTrimmedControl   SPLinkButton                                              
.HtcMenu                    SPMenu                                                    
.HtcMenuOption              SPMenuOption                                              
.FormDigest                 SPMobileFormDigest                                        
.SPDatePickerControl        SPMonthPickerControl                                      
.SPLinkButton               SPToolBarButton                                           
.BaseXmlDataSource          SPXmlDataSource                                           
.UpdateableHierarchicalView SPXmlHierarchicalDataSourceView                           
.SSOProcessor               SQLSSOProcessor                                           
.SaveButton                 SubmitCommentButton                                       
.ListFieldIterator          SurveyFieldIterator                                       
.MergedDataSource           SyncMergedDataSource                                      
.PickerResultControlBase    TableResultControl                                        
.SPControl                  TemplateBasedControl                                      
.TemplateBasedControl       TemplateContainer                                         
.BaseTextField              TextField                                                 
.SPControl                  Theme                                                     
.TemplateBasedControl       ToolBarMenuButton                                         
.FormComponent              UnlinkCopyButton                                          
.ToolBarMenuButton          UploadMenu                                                
.BaseFieldControl           UrlField                                                  
.UrlValidator               UrlNameValidator                                          
.UrlValidator               UrlPathValidator                                          
.SPControl                  UrlRedirector                                             
.InputFormCustomValidator   UrlValidator                                              
.BaseFieldControl           UserField                                                 
.FormButton                 UserInfoListDeleteItemButton                              
.FormButton                 UserInfoListEditItemButton                                
.FormComponent              UserInfoListFormToolBar                                   
.FormComponent              VersionDiff                                               
.ListFieldIterator          VersionDiffIterator                                       
.FormButton                 VersionHistoryButton                                      
.AlphaImage                 ViewIcon                                                  
.SPControl                  ViewSearchForm                                            
.SPControl                  ViewSelector                                              
.ToolBarMenuButton          ViewSelectorMenu                                          
.TemplateBasedControl       ViewToolBar                                               
.FormButton                 ViewWebPartXmlButton                                      
.PersistedObjectContextS... WebApplicationSelector                                    
.FormComponent              WebPartPageMaintenanceMessage                             
.DailyCalendarView          WeeklyCalendarView                                        
.EditItemButton             WikiEditButton                                            
.EditItemButton             WikiEditItemButton                                        
.FileField                  WikiFileField                                             
.FormButton                 WikiIncomingLinksButton                                   
.FormButton                 WikiPageHistoryButton                                     
.FormComponent              WorkflowForm                                              
.FormButton                 WorkflowsButton                                           
.SSOProcessor               XMLSSOProcessor                                           
.BaseXmlDataSource          XmlUrlDataSource                                          
.UpdateableHierarchicalView XmlUrlHierarchicalDataSourceView                          

 

 

.

No comments:

Post a Comment

Note to spammers...
Spammers, don't waste your time... all posts are moderated. If your comment includes unrelated links, is advertising, or just pure spam, it will never be seen.