C# Class ScrewTurn.Wiki.UrlTools

Implements useful URL-handling tools.
Afficher le fichier Open project: mono/ScrewTurnWiki Class Usage Examples

Méthodes publiques

Méthode Description
BuildUrl ( ) : string

Builds a URL properly prepending the namespace to the URL.

BuildUrl ( StringBuilder destination ) : void

Builds a URL properly appendind the NS parameter if appropriate.

GetCurrentNamespace ( ) : string

Extracts the current namespace from the URL, such as /App/Namespace.Edit.aspx.

Redirect ( string target ) : void

Redirects the current response to the specified URL, properly appending the current namespace if any.

Redirect ( string target, bool addNamespace ) : void

Redirects the current response to the specified URL, appending the current namespace if requested.

RedirectHome ( ) : void

Redirects to the default page of the current namespace.

RouteCurrentRequest ( ) : void

Properly routes the current virtual request to a physical ASP.NET page.

Method Details

BuildUrl() public static méthode

Builds a URL properly prepending the namespace to the URL.
public static BuildUrl ( ) : string
Résultat string

BuildUrl() public static méthode

Builds a URL properly appendind the NS parameter if appropriate.
public static BuildUrl ( StringBuilder destination ) : void
destination StringBuilder The destination .
Résultat void

GetCurrentNamespace() public static méthode

Extracts the current namespace from the URL, such as /App/Namespace.Edit.aspx.
public static GetCurrentNamespace ( ) : string
Résultat string

Redirect() public static méthode

Redirects the current response to the specified URL, properly appending the current namespace if any.
public static Redirect ( string target ) : void
target string The target URL.
Résultat void

Redirect() public static méthode

Redirects the current response to the specified URL, appending the current namespace if requested.
public static Redirect ( string target, bool addNamespace ) : void
target string The target URL.
addNamespace bool A value indicating whether to add the namespace.
Résultat void

RedirectHome() public static méthode

Redirects to the default page of the current namespace.
public static RedirectHome ( ) : void
Résultat void

RouteCurrentRequest() public static méthode

Properly routes the current virtual request to a physical ASP.NET page.
public static RouteCurrentRequest ( ) : void
Résultat void