Apr 04, 2012, 11:11 AM
[CLOSED] Fill layout region with partial view
I have to separate the UI code in small pieces using MVC razor views.
I'm wondering if I can split the core of my app as different views organized in a BorderLayout. I'd like to dynamically build the different regions of my BorderLayout using different views. Example Region.Nord composed by "/Home/Toolbar", region.West filled by "/Home/Menu" and so on.
I've got successfully built the border layout but I don't know ho to fill regions using partial views. I tried different strategies like the one below
Thanks
Mario
P.S. also tried
I'm wondering if I can split the core of my app as different views organized in a BorderLayout. I'd like to dynamically build the different regions of my BorderLayout using different views. Example Region.Nord composed by "/Home/Toolbar", region.West filled by "/Home/Menu" and so on.
I've got successfully built the border layout but I don't know ho to fill regions using partial views. I tried different strategies like the one below
(mypanel).Html(Html.Partial("/Views/Home/Toolbar.cshtml").ToHtmlString()
but no success, any hints?Thanks
Mario
P.S. also tried
LoadExtContent
but I got an exception: cannot convert webpage to razor page
Last edited by Daniil; Apr 09, 2012 at 6:58 PM.
Reason: [CLOSED]