







![]() ![]() ![]() |
C# Webserver |
ViewController Members |
ViewController Class Constructors Methods Properties See Also Send Feedback |
The ViewController type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ViewController | Overloaded. |
Methods
Name | Description | |
---|---|---|
![]() | CanHandle |
Method that determines if an url should be handled or not by the module
(Inherited from RequestController.) |
![]() | Clone |
Make a clone of this controller
(Inherited from RequestController.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetMethod |
Determines which method to use.
(Inherited from RequestController.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InvokeMethod |
Override this method to be able to process result
returned by controller method.
(Inherited from RequestController.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnUnhandledException |
Override this method if you want to be able to
handle unhanded exceptions
(Inherited from RequestController.) |
![]() | Process |
Method that process the url
(Inherited from RequestController.) |
![]() | Render |
Render template for the currently invoked method.
|
![]() | RenderAction |
Render contents into a template.
|
![]() | RenderErrors |
Renders errors from the Errors property into the
current method template, or as a javascript alert if the request is ajax.
|
![]() | RenderJavascript |
Switches content-type to "text/javascript" and returns content.
|
![]() | RenderJsErrors |
Creates a javascript "alert" filled with all errors.
|
![]() | RenderLayout |
renders one of the layouts
|
![]() | RenderTemplate |
Render a template.
|
![]() | SetupRequest |
Invoked each time a new request is about to be invoked.
(Overrides RequestController..::.SetupRequest(HttpRequest, HttpResponse, HttpSession).) |
![]() | ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
![]() | Arguments |
Arguments that are being used in the templates.
|
![]() | AuthenticationTag |
object that was attached during http authentication process.
(Inherited from RequestController.) |
![]() | ControllerName |
Name of this controller (class name without the "Controller" part)
(Inherited from RequestController.) |
![]() | DefaultMethod |
Specifies the method to use if no action have been specified.
(Inherited from RequestController.) |
![]() | Errors |
A set of errors that occured during request processing.
Key should be argument name (if argument error, otherwise Empty()()()), value should be
the error message.
|
![]() | Id |
Id is the third part of the uri path.
(Inherited from RequestController.) |
![]() | IncludeLayoutInAjaxRequests |
True if we always should render contents inside page layouts when request is ajax.
|
![]() | Layout |
Which page layout to use (without file extension)
|
![]() | MethodName |
Method currently being invoked.
Always in lower case.
(Inherited from RequestController.) |
![]() | Request |
Request information (like Url, form, querystring etc)
(Inherited from RequestController.) |
![]() | RequestedExtension |
Extension if a filename was specified.
(Inherited from RequestController.) |
![]() | Response |
Response information (that is going to be sent back to the browser/client)
(Inherited from RequestController.) |
![]() | Session |
Session information, is stored between requests as long as the session cookie is valid.
(Inherited from RequestController.) |
![]() | Title |
Page title (are added as a paramter to the layout template, use it in <title> html tag.
|