Bootstrap Search Suggest 插件使用

Controllers

public ActionResult Index()
        {
            YuXi();
            return View();
        }
        public void YuXi()
        {
            var query = from a in entities.CESHI
                        select new
                        {
                            ID=a.ID,
                            NEIRONG = a.NEIRONG,
                            REMARK01 = a.REMARK01
                        };
            JavaScriptSerializer jss = new JavaScriptSerializer();
            ViewData["Json"] = jss.Serialize(query.ToList());
        }

Views




    
    Index
    
    
    
    


    


你可能感兴趣的:(mvc,asp.net)