Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 18, 2011 12:27 PM by KSighem
Jul 18, 2011 11:55 AM|LINK
I'm trying to get my first MVC Razor app to work, and I not having much luck with it.
Using the sample code from some blog I try to get a section rendered like so:
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
I varied the location of @section bit, but I keep getting the
error. What am I missing?
Jul 18, 2011 12:10 PM|LINK
You define the section in a view and render it in the _Layout.cshtml (aka the master page).
Check this for more info:
Jul 18, 2011 12:27 PM|LINK
I understand the section has to be on all views serviced by _Layout. Thanks