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

Mostra file Open project: BVNetwork/404handler Class Usage Examples

Public Methods

Method 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

Method Description
SetContextLanguage ( CultureInfo culture ) : void

Method Details

Get404PageLanguageResourceContent() public static method

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

GetQueryString() public static method

public static GetQueryString ( System.Web.HttpRequestBase request ) : string
request System.Web.HttpRequestBase
return string

GetReferer() public static method

The refering url
public static GetReferer ( System.Web.HttpRequestBase request ) : string
request System.Web.HttpRequestBase
return string

GetStatus() public static method

public static GetStatus ( int statusCode ) : string
statusCode int
return string

GetStatusCode() public static method

public static GetStatusCode ( System.Web.HttpRequestBase request ) : int
request System.Web.HttpRequestBase
return int

GetUrlNotFound() public static method

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

HandleOnLoad() public static method

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

SetCurrentLanguage() public static method

public static SetCurrentLanguage ( System.Web.HttpContextBase context ) : void
context System.Web.HttpContextBase
return void

SetCurrentLanguage() public static method

public static SetCurrentLanguage ( string url ) : void
url string
return void