Feb 22, 2012, 11:34 PM
[CLOSED] Razor syntax for adding a partial view to a Panel
Hi there,
I'm having some trouble adding a partial view as the content for a Panel. What is the correct syntax for this? For example if I have a partial view "_partial.cshtml" and i want it to be the content of a panel?
I've tried variations on the following no luck:
I'm having some trouble adding a partial view as the content for a Panel. What is the correct syntax for this? For example if I have a partial view "_partial.cshtml" and i want it to be the content of a panel?
I've tried variations on the following no luck:
Html.X().Panel()
.Region(Region.West)
.Width(225)
.CollapseMode(CollapseMode.Mini)
.Margins("0 0 4 4")
.Content("/views/shared/_partial.cshtml")
thanks,
Last edited by Daniil; Feb 27, 2012 at 10:20 AM.
Reason: [CLOSED]