SearchBoxEx.OnPreRender method

If scoping is enabled then we make sure that there is a default scope. if the default scope is contextual scope then we also need contextual scope property and real name for the scope. If we got a contextual scope from url then we add that to scope drop down. Right now it is added to the end, but the correct behavior should be to add to the top. The script needed for Go Button is added at the bottom.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Protected Overrides Sub OnPreRender ( _
    sender As Object, _
    e As EventArgs _
)
'Usage
Dim sender As Object
Dim e As EventArgs

Me.OnPreRender(sender, e)
protected override void OnPreRender(
    Object sender,
    EventArgs e
)

Parameters

  • e
    Type: System.EventArgs

    A System.EventArgs object that contains the event data.

See also

Reference

SearchBoxEx class

SearchBoxEx members

Microsoft.SharePoint.Portal.WebControls namespace