SearchBox.PromptText Property
This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. For Enterprise Search in Microsoft Office SharePoint Server 2007, use the SearchBoxEx instead. Gets or sets the default text displayed in the search box.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Property PromptText As String
Get
Set
'Usage
Dim instance As SearchBox
Dim value As String
value = instance.PromptText
instance.PromptText = value
public string PromptText { get; set; }
Property Value
Type: System.String
A string that contains the default text displayed in the search box.
Remarks
The PromptText property is read/write. This property applies only when the CompactMode property is set to true. The prompt text is displayed before the search text input box. If the ContextSensitiveScopeType property is set to 4, the prompt text is displayed above the text input box.