C# Class BVNetwork.NotFound.Core.NotFoundPage.NotFoundPageUtil

Afficher le fichier Open project: BVNetwork/404handler Class Usage Examples

Méthodes publiques

Méthode Description
Get404PageLanguageResourceContent ( ) : BVNetwork.NotFound.Core.NotFoundPage.PageContent

Gets the content for the 404 page from the language files.

GetQueryString ( System.Web.HttpRequestBase request ) : string
GetReferer ( System.Web.HttpRequestBase request ) : string

The refering url

GetStatus ( int statusCode ) : string
GetStatusCode ( System.Web.HttpRequestBase request ) : int
GetUrlNotFound ( System.Web.HttpRequestBase request ) : string

Gets the URL that was not found.

HandleOnLoad ( Page page, Uri urlNotFound, string referer ) : void
SetCurrentLanguage ( System.Web.HttpContextBase context ) : void
SetCurrentLanguage ( string url ) : void

Private Methods

Méthode Description
SetContextLanguage ( CultureInfo culture ) : void

Method Details

Get404PageLanguageResourceContent() public static méthode

Gets the content for the 404 page from the language files.
public static Get404PageLanguageResourceContent ( ) : BVNetwork.NotFound.Core.NotFoundPage.PageContent
Résultat BVNetwork.NotFound.Core.NotFoundPage.PageContent

GetQueryString() public static méthode

public static GetQueryString ( System.Web.HttpRequestBase request ) : string
request System.Web.HttpRequestBase
Résultat string

GetReferer() public static méthode

The refering url
public static GetReferer ( System.Web.HttpRequestBase request ) : string
request System.Web.HttpRequestBase
Résultat string

GetStatus() public static méthode

public static GetStatus ( int statusCode ) : string
statusCode int
Résultat string

GetStatusCode() public static méthode

public static GetStatusCode ( System.Web.HttpRequestBase request ) : int
request System.Web.HttpRequestBase
Résultat int

GetUrlNotFound() public static méthode

Gets the URL that was not found.
public static GetUrlNotFound ( System.Web.HttpRequestBase request ) : string
request System.Web.HttpRequestBase The request.
Résultat string

HandleOnLoad() public static méthode

public static HandleOnLoad ( Page page, Uri urlNotFound, string referer ) : void
page System.Web.UI.Page
urlNotFound System.Uri
referer string
Résultat void

SetCurrentLanguage() public static méthode

public static SetCurrentLanguage ( System.Web.HttpContextBase context ) : void
context System.Web.HttpContextBase
Résultat void

SetCurrentLanguage() public static méthode

public static SetCurrentLanguage ( string url ) : void
url string
Résultat void