asp.net mvc 4 - Replicating web form in MVC 4 -


i'm new mvc, general concept.
however, i'm stuck trying replicate page easy create in web forms.

in web forms, have dropdownlist (majors), when selected, postback , displays listbox (courses) based on value ddl.
then, when item listbox selected, postback occurs , grid (classes) displayed based on item listbox.
during postbacks, selected items in ddl , listbox stay selected.

in attempt @ in mvc, i've got spaghetti code over...

my question is, can accomplish this, 1 controller, 1 view, , 3 partial views? want stick plain mvc, can work in jquery once working.

you have load dropdowns , have model real record on page there alt least 3 models..... have use viewmodel bring 3 models

so model classes classes\course\main model (student?) create viewmodel 3

then view has access viewmodel , classes/data


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -