Razor Pages and Helpers

Prerequisites

To use cshtml the Node.Cs.Razor plugin must be loaded into the solution and added into the "Plugin" section of the "node.config" file

<NodeCsConfiguration>
    <NodeCsSettings>
        <Plugins>
            <Plugin Dll="Node.Cs.Razor.dll"/>
            ...

The cshtml pages will be more or less the same for Node.Cs MVC

Features

The features that are present "out of the box" are:

Html.ActionLink

Note that the routeValues, the controller name and the htmlAttributes are -all- nullable

Html.BeginForm, Html.EditorForModel

The form creation is exactly like the standard MVC:

@using (Html.BeginForm()) {
    ...
}

Fields (Html.EditorFor, Html.LabelFor etc)

Html.Partial

Html.RenderAction


Last modified on: February 28, 2014