Bean Software Search Control Documentation   
 
 
     




Text Property


Description:
Represents a string that is visible in text box of Search Control. Value of this property is used when getWhereClause() method is called. If getWhereClause is called with SearchExpression parameter, Text property value is ignored.

[Visual Basic .NET]

Public Property Text() As String


[C#]

public string Text() {get; set;}

Data type: string

Default value: empty string

Example: Set Text property to "Apple" and call getWhereClause() method without a parameter. Control will return a SQL that search for Apple term.
You can call getWhereClause with SearchExpression parameter with code like this:

SearchControl1.getWhereClause("apple and banana");