C# Class Simplify.Web.Modules.Redirector

Provides website redirection manager, which controls current user location, url to previous page and url to specified page
Inheritance: IRedirector
Show file Open project: i4004/Simplify.Web Class Usage Examples

Public Methods

Method Description
Redirect ( RedirectionType redirectionType, string bookmarkName = null ) : void

Navigates the client by specifying redirection type.

Redirect ( string url ) : void

Redirects the client to specified URL.

Redirector ( IWebContext context ) : System

Initializes a new instance of the Redirector class.

SetLoginReturnUrlFromCurrentUri ( ) : void

Sets the login return URL from current URI.

SetRedirectUrlToCurrentPage ( ) : void

Sets the redirect url to current page.

Method Details

Redirect() public method

Navigates the client by specifying redirection type.
public Redirect ( RedirectionType redirectionType, string bookmarkName = null ) : void
redirectionType RedirectionType Type of the redirection.
bookmarkName string Name of the bookmark.
return void

Redirect() public method

Redirects the client to specified URL.
public Redirect ( string url ) : void
url string The URL.
return void

Redirector() public method

Initializes a new instance of the Redirector class.
public Redirector ( IWebContext context ) : System
context IWebContext The context.
return System

SetLoginReturnUrlFromCurrentUri() public method

Sets the login return URL from current URI.
public SetLoginReturnUrlFromCurrentUri ( ) : void
return void

SetRedirectUrlToCurrentPage() public method

Sets the redirect url to current page.
public SetRedirectUrlToCurrentPage ( ) : void
return void