问题
How do you implement auto-complete with ASP.NET, MVC3, and Razor?
回答1:
You could use jQuery UI Autocomplete control along with an mvc action that returns a JsonResult with the right data
回答2:
This isn't using Razor but translating it from webforms to razor is pretty trivial: http://tpeczek.com/2010/05/jquery-autocomplete-in-aspnet-mvc.html
来源:https://stackoverflow.com/questions/5033060/asp-net-mvc3-razor-auto-complete-tutorial