开发者

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

开发者 https://www.devze.com 2022-12-31 01:34 出处:网络
How can i use dropdown selected value to asp.net mvc controller for filling another dropdow开发者_运维百科nThere\'s a handy blog post here regarding cascading dropdowns:

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

精彩评论

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