ASP.NET MVC Html.DropDownList populated by Ajax call to controller?

前端 未结 2 382
广开言路
广开言路 2020-12-01 00:10

I wanted to create an editor template for a field type that is represented as a dropdownlist. In the definition of the editor template I would like to populate the DropDown

2条回答
  •  心在旅途
    2020-12-01 01:07

    I know this post is a few years old but I found it and so might you. I use the following solution and it works very well. Strong typed without the need to write a single line of Javascript.

    mvc4ajaxdropdownlist.codeplex.com

    You can download it via Visual Studio as a NuGet package.

提交回复
热议问题