Multiple partial views on one main homepage, asp.net mvc -


hi still kinda new asp.net , can do. looking use few typed partial views on 1 main homepage. not sure how repository , irepository.

i have done , keep getting error when try load page.

  <%html.renderpartial("~/views/shared/partial.ascx", model);%> 

would have use viewdata pass information view?? grateful, along examples. can please regards

would have use viewdata pass information view?

yes.

if don't want pass data through same controller method partial views, consider using renderaction instead of renderpartial. need more controller methods, won't have repeat data binding code in existing controller methods every time use partial view.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -