C# Class Daniel15.Web.Extensions.UrlHelperExtensions

Various URL helpers
Afficher le fichier Open project: Daniel15/Website

Méthodes publiques

Méthode Description
Absolute ( this urlHelper, string uri ) : string

Converts the specified relative URI into an absolute URL

ContentAbsolute ( this urlHelper, string uri ) : string

Gets the absolute URL (http://..../blah) to the specified URI

Image ( this urlHelper, string filename ) : string

Gets the URL to the specified image

Js ( this urlHelper, string filename ) : string

Gets the URL to the specified JavaScript file

Method Details

Absolute() public static méthode

Converts the specified relative URI into an absolute URL
public static Absolute ( this urlHelper, string uri ) : string
urlHelper this URL helper
uri string Relative URI
Résultat string

ContentAbsolute() public static méthode

Gets the absolute URL (http://..../blah) to the specified URI
public static ContentAbsolute ( this urlHelper, string uri ) : string
urlHelper this The URL helper
uri string URI to link to
Résultat string

Image() public static méthode

Gets the URL to the specified image
public static Image ( this urlHelper, string filename ) : string
urlHelper this The URL helper.
filename string The filename.
Résultat string

Js() public static méthode

Gets the URL to the specified JavaScript file
public static Js ( this urlHelper, string filename ) : string
urlHelper this The URL helper.
filename string The filename.
Résultat string