简体   繁体   中英

Is there a JSON-returning ASP.NET MVC for ajaxComboBox already?

The combobox in question http://plugins.jquery.com/project/ajaxComboBox

I forgot to note, I want to use it on ASP.NET MVC, ie sans the viewstates and the whole shebang

Why not just use the ajaxComboBox then? ASP.NET MVC doesn't have "viewstates and the whole shebang" as you put it, it's heavily reliant on you crafting the view (HTML) from the model that is presented through the controller (although you should optimially present something more like a modelview to the view, but that's off-topic).

First you would create a method on a controller which would return the items.

Then, in your view, you just have to write (in place) the url of the route to the method on your controller as the first parameter to ajaxComboBox and it should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM