我有文本框...If,我在文本框中键入
"C,C++,ASP.Net,4-5年“,那么数据库应该检查每个单词,无论该名称是否存在于数据库的表字段中。它应该单独检查每个单词,就像搜索引擎一样。
在asp.net中我该怎么做?
发布于 2010-05-31 13:13:09
这是相当快速和肮脏的,但将使您开始。
string[] split = YourTextBox.Text.Split(new char[] {','});
foreach(string str in split)
{
//check the database about str
//perhaps using a LIKE query for partial matches
}https://stackoverflow.com/questions/2941475
复制相似问题