Although a search component is not very powerful, it is now the second version. Previous: http://www.cnblogs.com/insus/archive/2011/03/30/1999759.html
In this version, the limitation of the first version is only the AND condition search.
. NET 4.0 environment,: http://download.cnblogs.com/insus/Library/InsusSearchUtility_Ver2.rar
After downloading and decompressing the package, pull InsusSearchUtility. dll into or reference it to the BIN directory.
Reference a namespace. VB. NET:
Insus. NET
C #:
Insus. NET;
The following example shows how to search the title and content of an article.
In, logic = logic. and or logic. OR is a logical processing condition;
Is the field you search for a data table;
It is the value you enter or select when searching;
Is a condition statement. You can also use =, <>,>, <, <=,> =, and so on.
The last sentence contains the Get_SearchResult () method, which is described as follows:
Finally, Insus. NET provides the storage procedure statement: