Share via


SearchBoxEx.QueryPromptString Property

Gets or sets the search box Web Part's query prompt text.

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

Syntax

'Declaration
<ResourcesAttribute("SearchBox_QueryPromptString", "SearchBox_QueryTextBox",  _
    "SearchBox_QueryPromptString_ToolTip")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property QueryPromptString As String
    Get
    Set
'Usage
Dim instance As SearchBoxEx
Dim value As String

value = instance.QueryPromptString

instance.QueryPromptString = value
[ResourcesAttribute("SearchBox_QueryPromptString", "SearchBox_QueryTextBox", 
    "SearchBox_QueryPromptString_ToolTip")]
[WebPartStorageAttribute(Storage.Shared)]
public string QueryPromptString { get; set; }

Property Value

Type: System.String
A string that contains the query prompt text.

See Also

Reference

SearchBoxEx Class

SearchBoxEx Members

Microsoft.SharePoint.Portal.WebControls Namespace