C# Class Daniel15.Web.Extensions.UrlHelperExtensions

Various URL helpers
Show file Open project: Daniel15/Website

Public Methods

Method 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 method

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
return string

ContentAbsolute() public static method

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
return string

Image() public static method

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

Js() public static method

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.
return string