Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Easiest way to get rid of extra DIV-tags when rendering content areas (MVC mode)?

$
0
0

Hi!

What would you say is the easiest way to get rid of extra DIV-tags when rendering content areas (MVC mode)?

I've tried this

@Html.PropertyFor(p => p.CurrentPage.MainContentArea, new { hascontainer = false })

But still an extra DIV is added.

Googling I've seen example of custom content area renderers but to me that seems overkill and messy.


Viewing all articles
Browse latest Browse all 9076

Trending Articles