ASP.NET MVC3 Razor - Auto-complete Tutorial?

2020-04-02 06:51发布

问题:

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