SearchBoxEx.TextBeforeTextBox Property
Gets or sets the text displayed in front of the search box Web Part's query text box.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<ResourcesAttribute("SearchBox_QueryTextBoxLabel", "SearchBox_QueryTextBox", _
"SearchBox_QueryTextBoxLabel_ToolTip")> _
Public Property TextBeforeTextBox As String
Get
Set
'Usage
Dim instance As SearchBoxEx
Dim value As String
value = instance.TextBeforeTextBox
instance.TextBeforeTextBox = value
[WebPartStorageAttribute(Storage.Shared)]
[ResourcesAttribute("SearchBox_QueryTextBoxLabel", "SearchBox_QueryTextBox",
"SearchBox_QueryTextBoxLabel_ToolTip")]
public string TextBeforeTextBox { get; set; }
Property Value
Type: System.String
A string that contains the text displayed in front of the query text box.