Table of Contents

Class HttpRequestHelper

Namespace
InSite.Common.Web
Assembly
InSite.UI.dll
public static class HttpRequestHelper
Inheritance
HttpRequestHelper
Inherited Members

Properties

ApplicationPath

public static string ApplicationPath { get; }

Property Value

string

CurrentRootUrl

public static string CurrentRootUrl { get; }

Property Value

string

CurrentRootUrlFiles

public static string CurrentRootUrlFiles { get; }

Property Value

string

IsAjaxRequest

public static bool IsAjaxRequest { get; }

Property Value

bool

IsIE

public static bool IsIE { get; }

Property Value

bool

IsMobileDevice

public static bool IsMobileDevice { get; }

Property Value

bool

Methods

GetAbsoluteUrl(string)

public static string GetAbsoluteUrl(string relativeUrl)

Parameters

relativeUrl string

Returns

string

GetCurrentWebUrl()

public static WebUrl GetCurrentWebUrl()

Returns

WebUrl

GetDomainName(int)

public static string GetDomainName(int level)

Parameters

level int

Returns

string

GetParameterValueAsGuid(string)

public static Guid GetParameterValueAsGuid(string name)

Parameters

name string

Returns

Guid

GetParameterValueAsGuidNullable(string)

public static Guid? GetParameterValueAsGuidNullable(string name)

Parameters

name string

Returns

Guid?

GetParameterValueAsInt32(string)

public static int GetParameterValueAsInt32(string name)

Parameters

name string

Returns

int

GetParameterValueAsInt32Nullable(string)

public static int? GetParameterValueAsInt32Nullable(string name)

Parameters

name string

Returns

int?

GetParameterValueAsString(string)

public static string GetParameterValueAsString(string name)

Parameters

name string

Returns

string

GetRawUrl(HttpRequest)

public static string GetRawUrl(HttpRequest request)

Parameters

request HttpRequest

Returns

string

IsEmbeddedResource(HttpRequest)

public static bool IsEmbeddedResource(HttpRequest request)

Parameters

request HttpRequest

Returns

bool

IsStaticAsset(HttpRequest)

public static bool IsStaticAsset(HttpRequest request)

Parameters

request HttpRequest

Returns

bool

IsUrlFilePathValid(string)

public static bool IsUrlFilePathValid(string url)

Parameters

url string

Returns

bool

ResolveUrl(string)

public static string ResolveUrl(string url)

Parameters

url string

Returns

string