Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Controllers.YetaWFController.PartialView Method

Returns an action to render a partial view.

Class: YetaWF.Core.Controllers.YetaWFController
Namespace: YetaWF.Core.Controllers
Assembly: YetaWF.Core

Syntax

public new PartialViewResult PartialView();
public new PartialViewResult PartialView( string? viewName );
public new PartialViewResult PartialView( object? model );
public new PartialViewResult PartialView(
    string? viewName,
    object? model );
protected PartialViewResult PartialView(
    ScriptBuilder? Script = null,
    string? ContentType = null,
    bool PureContent = false,
    bool AreaViewName = true,
    bool Gzip = false,
    bool ForcePopup = false );
protected PartialViewResult PartialView(
    object? model,
    ScriptBuilder? Script = null,
    string? ContentType = null,
    bool PureContent = false,
    bool AreaViewName = true,
    bool Gzip = false,
    bool ForcePopup = false );
protected PartialViewResult PartialView(
    string viewName,
    ScriptBuilder? Script = null,
    string? ContentType = null,
    bool PureContent = false,
    bool AreaViewName = true,
    bool Gzip = false,
    bool ForcePopup = false );
protected PartialViewResult PartialView(
    string viewName,
    object? model,
    ScriptBuilder? Script = null,
    string? ContentType = null,
    bool PureContent = false,
    bool AreaViewName = true,
    bool Gzip = false,
    bool ForcePopup = false );

Parameters

viewName

The name of the partial view.

model

The model.

Script

Optional JavaScript executed client-side when the view is rendered.

ContentType

The optional content type. Default is text/html.

PureContent

Set to false to process the partial view as a regular response to a view (including any processing YetaWF adds). If true is specified, only the rendered view is returned, without YetaWF processing, JavaScript, etc.

AreaViewName

true if the view name is the name of a standard view, otherwise the area specific view by that name is used.

Gzip

Defines whether the returned content is GZIPed.

ForcePopup

(not specified)

Return Value

Returns an action to render a partial view.

See Also YetaWF.Core.Controllers.YetaWFController ClassYetaWF.Core Overview