Class JavaScriptResult
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
contextControllerContextThe context within which the result is executed.
Exceptions
- ArgumentNullException
The
contextparameter is null.