1
添加引用
using MyBookShop.BLL;
using MyBookShop.Models;
2
摘要说明[]后,添加:
[System.Web.Script.Services.ScriptService()]
3
修改[WebMethod]下的方法:
//搜索图书的方法:
public string[] GetHotSearchByKeywords(string prefixText, int count)
{
//根据关键字和显示行数,返回查询的结果
return SearchKeywordManager.GetHotSearchKeywords(prefixText, count);
}
添加引用
using MyBookShop.BLL;
using MyBookShop.Models;
2
摘要说明[]后,添加:
[System.Web.Script.Services.ScriptService()]
3
修改[WebMethod]下的方法:
//搜索图书的方法:
public string[] GetHotSearchByKeywords(string prefixText, int count)
{
//根据关键字和显示行数,返回查询的结果
return SearchKeywordManager.GetHotSearchKeywords(prefixText, count);
}