开发者

MVC 3 + jQuery = dynamic forms

开发者 https://www.devze.com 2023-03-31 01:53 出处:网络
My page consist from these three blocks: Page header Page body Page foot In page header section I have several drop downs. Depends on selected values in these drop downs I have to load proper form

My page consist from these three blocks:

  1. Page header
  2. Page body
  3. Page foot

In page header section I have several drop downs. Depends on selected values in these drop downs I have to load proper form, so what is the best way开发者_C百科 to make it? Thank you!


may not be the best way but you can put the form in a partial view and onChange of selected value render the partial view using ajax

here is an example http://iridescence.no/post/Partial-Rendering-with-ASPNET-MVC-and-jQuery.aspx

0

精彩评论

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