RenderErrors Method

HttpServer.dll

Renders errors from the Errors property into the current method template, or as a javascript alert if the request is ajax.

Namespace:  HttpServer.Controllers
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
protected string RenderErrors(
	string method,
	params Object[] arguments
)
Visual Basic (Declaration)
Protected Function RenderErrors ( _
	method As String, _
	ParamArray arguments As Object() _
) As String
Visual C++
protected:
String^ RenderErrors(
	String^ method, 
	... array<Object^>^ arguments
)

Parameters

method
Type: System..::.String
name of the currently invoked method.
arguments
Type: array< System..::.Object >[]()[]
arguments used in the method template.

Return Value

generated string

Remarks

Creates a javascript alertbox if request is ajax.

See Also