开发者

How to send dropdown selected value to asp.net mvc controller

How can i use dropdown selected value to asp.net mvc controller for filling another dropdow开发者_运维百科n


There's a handy blog post here regarding cascading dropdowns:

http://stephenwalther.com/blog/archive/2008/09/07/asp-net-mvc-tip-41-creating-cascading-dropdown-lists-with-ajax.aspx

I'd suggest using jQuery to return a JSON result from the controller with the data for the next dropdown. This isn't great for accessibility but even in WebForms Javascript is used to postback DropDownList controls anyway.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜