c# - MVC Building a page in 'sections' -


i wonder if me please....i'm starting out in mvc , i've been asked build page (vs2013, mvc4 , umbraco 7) in following format. need build page in contains accordion 4 levels.

the first level built what's incoming off querystring , displays user radiobutton list. done part insomuch getting data in controller , returning ienumerable view , displaying user.

my problem level 2 should populated user has selected in level 1 (and level 3 select in level 2, etc.) , don't know how go building this.

i can't put code examples don't know start writing (!) point me in right direction or tell me structure need start building in page please?

thanks, craig

what need @ loading partial view via ajax request after selections have been made.

    var selection1 = $(".selection1radiobutton").val();     $.ajax({     type: "get",     url: "/home/getsomepartialview?selection1=" + selection1,     data: somearguments,     success: function (viewhtml) {          $("#somediv").html(viewhtml);      },     error: function (errordata) { onerror(errordata); }     }); 

and repeat selection 2.


Comments