Search Results for

    Show / Hide Table of Contents

    Class HtmlHelperExtensions

    Extension methods for the class.

    Inheritance
    Object
    HtmlHelperExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: NipoSoftware.Nfield.Web.Interviewing.Helpers
    Assembly: NipoSoftware.Nfield.TemplateHelpers.dll
    Syntax
    public static class HtmlHelperExtensions

    Methods

    AddScriptReference(WebViewPage, String)

    Adds a reference to a script file for the specified (partial view)

    Declaration
    public static void AddScriptReference(this WebViewPage page, string scriptName)
    Parameters
    Type Name Description
    WebViewPage page
    String scriptName
    Remarks

    Script file names should be just the name, without the .js extension and without any path information.

    AddStyleSheetReference(WebViewPage, String)

    Adds a reference to a style sheet file for the specified (partial) view.

    Declaration
    public static void AddStyleSheetReference(this WebViewPage page, string styleSheetName)
    Parameters
    Type Name Description
    WebViewPage page
    String styleSheetName
    Remarks

    Style sheet file names should be just the name, without the .css extension and without any path information.

    BeginInterviewForm(HtmlHelper)

    A specific form that automatically renders interview state variables

    Declaration
    public static MvcForm BeginInterviewForm(this HtmlHelper htmlHelper)
    Parameters
    Type Name Description
    HtmlHelper htmlHelper
    Returns
    Type Description
    MvcForm

    RenderImageReference(HtmlHelper, String)

    Render the image reference during rendering the view Views for the current request.

    Declaration
    public static string RenderImageReference(this HtmlHelper htmlHelper, string fileName)
    Parameters
    Type Name Description
    HtmlHelper htmlHelper
    String fileName
    Returns
    Type Description
    String

    RenderInterviewScreen(WebPageBase)

    Renders the interview related portion of the Screen

    Declaration
    public static HelperResult RenderInterviewScreen(this WebPageBase page)
    Parameters
    Type Name Description
    WebPageBase page
    Returns
    Type Description
    HelperResult

    RenderInterviewStateVariables(HtmlHelper)

    Render the interview state variables that are necessary throughout the interview

    Declaration
    public static MvcHtmlString RenderInterviewStateVariables(this HtmlHelper htmlHelper)
    Parameters
    Type Name Description
    HtmlHelper htmlHelper
    Returns
    Type Description
    MvcHtmlString

    RenderScriptReferences(HtmlHelper, WebViewPage)

    Render the script references that have been registered during the rendering of all Views and Partial Views for the current request.

    Declaration
    public static IHtmlString RenderScriptReferences(this HtmlHelper htmlHelper, WebViewPage page)
    Parameters
    Type Name Description
    HtmlHelper htmlHelper
    WebViewPage page
    Returns
    Type Description
    IHtmlString

    RenderStyleSheetReferences(HtmlHelper, WebViewPage)

    Render the style sheet references that have been registered during the rendering of all Views and Partial Views for the current request.

    Declaration
    public static IHtmlString RenderStyleSheetReferences(this HtmlHelper htmlHelper, WebViewPage page)
    Parameters
    Type Name Description
    HtmlHelper htmlHelper
    WebViewPage page
    Returns
    Type Description
    IHtmlString
    In This Article
    Back to top Generated by DocFX