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

pass string into a shared view using partial call

$
0
0

The way our sites are being set up, all pages use a shared head.cshtml view for all things head. For a couple of page types, they will need some additional info in the page title tag than standard pages get. So, for those pages' layout view, which calls the head using a partial...

@Html.Partial("Head")

I'd like to pass in additional text to the title tag.

I hope that makes sense. Is this possible and if so, how? Thanks!


Viewing all articles
Browse latest Browse all 9076

Trending Articles