Table of Contents

Class JavaScriptResult

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Sends JavaScript content to the response.

public class JavaScriptResult : ActionResult
Inheritance
JavaScriptResult
Inherited Members

Constructors

JavaScriptResult()

Initializes a new instance of the JavaScriptResult class.

public JavaScriptResult()

Properties

Script

Gets or sets the script.

public string Script { get; set; }

Property Value

string

The script.

Methods

ExecuteResult(ControllerContext)

Enables processing of the result of an action method by a custom type that inherits from the ActionResult class.

public override void ExecuteResult(ControllerContext context)

Parameters

context ControllerContext

The context within which the result is executed.

Exceptions

ArgumentNullException

The context parameter is null.