Microsoft.SharePoint.Portal ...


SearchBoxEx Class (Microsoft.SharePoint.Portal.WebControls)
Implements the search box Web Part on the Microsoft Office SharePoint Server 2007 search page.

Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)
Syntax

Visual Basic (Declaration)
<XmlRootAttribute(Namespace:="urn:schemas-microsoft-com:SearchBoxEx")> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
Public Class SearchBoxEx
    Inherits WebPartLoc
    Implements IDesignTimeHtmlProvider, INamingContainer
Visual Basic (Usage)
Dim instance As SearchBoxEx
C#
[XmlRootAttribute(Namespace="urn:schemas-microsoft-com:SearchBoxEx")] 
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
public class SearchBoxEx : WebPartLoc, IDesignTimeHtmlProvider, INamingContainer
Remarks

The SearchBoxEx control replaces the SearchBox control in Office SharePoint Server 2007.

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
     System.Web.UI.WebControls.WebControl
       System.Web.UI.WebControls.Panel
         System.Web.UI.WebControls.WebParts.Part
           System.Web.UI.WebControls.WebParts.WebPart
             Microsoft.SharePoint.WebPartPages.WebPart
               Microsoft.SharePoint.Portal.WebControls.WebPartLoc
                Microsoft.SharePoint.Portal.WebControls.SearchBoxEx
                   Microsoft.SharePoint.Portal.WebControls.PeopleSearchBoxEx
                   Microsoft.SharePoint.Portal.WebControls.RightBodySectionSearchBox
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Tags : bug


Community Content

austegard
Will cause JS Bug on ViewEdit Page if Included in custom application.master page
Including this control in a custom application.master will cause a second ShowHideGroup JS function to be loaded on the page, which will BREAK the ViewEdit page's show/hide group functionality (for IE only).

The same goes for the standard SearchBox - they both include Search.js with a defer attribute causing the conflict.

Page view tracker