SearchBoxEx.DisplaySubmittedSearch Property

Gets or sets a Boolean value indicating whether the search terms are displayed in the search box Web Part.

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

Syntax

'Declaration
<ResourcesAttribute("SearchBox_DisplaySubmittedSearch", "", "SearchBox_DisplaySubmittedSearch_ToolTip")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property DisplaySubmittedSearch As Boolean
    Get
    Set
'Usage
Dim instance As SearchBoxEx
Dim value As Boolean

value = instance.DisplaySubmittedSearch

instance.DisplaySubmittedSearch = value
[ResourcesAttribute("SearchBox_DisplaySubmittedSearch", "", "SearchBox_DisplaySubmittedSearch_ToolTip")]
[WebPartStorageAttribute(Storage.Shared)]
public bool DisplaySubmittedSearch { get; set; }

Property Value

Type: System.Boolean
true if the search terms are displayed in the search box Web Part; otherwise, false.

Remarks

This setting is for the search terms previously submitted by the user or appended to the query, so it applies to instances of the search box Web Part used on search results pages.

See Also

Reference

SearchBoxEx Class

SearchBoxEx Members

Microsoft.SharePoint.Portal.WebControls Namespace