Set editing privileges with more precision than type-to-type mapping.
Complete the following prerequisites:
Context for the current task
-
Task step.
Option |
Description |
If you are using MVC: |
continue to the next step. |
If you are using WebForms : |
continue to 4 |
-
In a view or partial view, use this
syntax:@Html.Sitecore().Field("Description",
this.Item)
-
In code behind, use this syntax:
PageContext.Current.HtmlHelper.Sitecore().Field("Description",
this.Item);
-
In WebForms, use this syntax:<sc:Text runat="server"
field="fieldName" />