Displays the message and returns a status code to the calling browser. Usually used to display a warning text along with the proper HTTP code - for example, when a custom 404 error is to be displayed to the user, but with proper 404 code sent in response headers (as oposed to IIS custom error page that returns 302+200). Should skip the IIS custom error pages when used in IIS 7 integrated mode. Message page URL is passed as a path parameter.

Namespace: MonoSoftware.MonoX
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public static void Show(
	string title,
	string description,
	string path,
	HttpStatusCode statusCode
)
Visual Basic
Public Shared Sub Show ( 
	title As String,
	description As String,
	path As String,
	statusCode As HttpStatusCode
)
Visual C++
public:
static void Show(
	String^ title, 
	String^ description, 
	String^ path, 
	HttpStatusCode statusCode
)
F#
static member Show : 
        title : string * 
        description : string * 
        path : string * 
        statusCode : HttpStatusCode -> unit 

Parameters

title
Type: System..::..String
Message page title.
description
Type: System..::..String
Message content.
path
Type: System..::..String
Relative URL of the message page to execute.
statusCode
Type: System.Net..::..HttpStatusCode
Status code to return to the calling browser (200 for OK, 404 for page not found, etc).

See Also