Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 432

Questions relating to the Razor syntax used in ASP.NET MVC and ASP.NET Web Pages.

1 vote

C# MVC razor view - HtmlHelper does not contain a definition for 'Sitecore'

I think you are missing Sitecore from your Views web.config. You web.config in the /views folder should look like this <system.web.webPages.razor> <host factoryType="System.Web.Mvc.MvcWebRazo …
Chris Auer's user avatar
  • 13.2k
6 votes
Accepted

How to Render @Html.Sitecore().Field using custom Model Item in Sitecore MVC

@Html.Sitecore().Field only works with real items and it sounds like Model.ArticleItem is not a real Sitecore Item. What you want to do is render the Sitecore field as HTML in your model and render …
Chris Auer's user avatar
  • 13.2k