コード例 #1
0
 public ActionResult AutocompleteFor(AutocompleteModel model)
 {
     //posted value is obtained from the model
     model.data = datasource;
     model.val  = model.val;
     return(View(model));
 }
コード例 #2
0
        public ActionResult AutocompleteFor()
        {
            AutocompleteModel model = new AutocompleteModel();

            model.data = datasource;
            model.val  = "Badminton";
            return(View(model));
        }