asp.net - Good way for splitting a page into small pages -


i'm beginner in asp.net mvc3 , sure way one. let's have page containing different things such header info @ top , detail info (footer) @ bottom. prefer create partial pages split these things in small pages (easy manage).

below example page:

enter image description here

here way cut page small pages.

enter image description here

this way of doing (for me @ least) easy understand , manage.

here detail.cshtml page

@model documentmanager.viewmodels.suitedetailviewmodel <div class="detail-header-toolbar">     @html.partial("detailheadertoolbar")            </div> <div class="detail-header-affaire">     @html.partial("detailheaderaffaire")            </div> <div class="detail-footer-suite">       @html.partial("detailfootertabs", model.suite)  </div> <div class="detail-script">             @html.partial("detailscript", model.suite)      </div> 

i place scripts in 1 page convenience (detailscript.cshtml).

i opinion. thank you.

in opinion splitting page smaller parts way of organizing code.

you should take @ layouts - using layout minimize duplicated code , apply consistent & feel.

you're right pass smaller models partial views.

the change make move divs classes (<div class="detail-header-toolbar">) inside partial views - part of partial view.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -