Click or drag to resize

HtmlHelperToAbsoluteUrl Method

Converts relative URL to an absolute URL.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public string ToAbsoluteUrl(
	string url,
	HttpRequestMessage request = null
)
View Source

Parameters

url  String
Relative URL.
request  HttpRequestMessage  (Optional)
Request message.

Return Value

String
Absolute URL.
Remarks
If HttpRequestMessage is not specified, function will attempt to find message in ViewBag.Request.
See Also