Table of Contents

Class UrlParser

Namespace
Dynamicweb.SystemTools
Assembly
Dynamicweb.dll

Class UrlParser contains methods for parsing url parts to different formats

public class UrlParser
Inheritance
UrlParser
Inherited Members

Methods

GetFullHrefString(string)

Get an appropriate Href from the input URL that can be used in a href attribute.

public static string GetFullHrefString(string url)

Parameters

url string

Input URL string, i.e. Default.aspx?ID=123, www.google.com or info@dynamicweb.com.

Returns

string

Returns string representation of the link with the right protocol etc.

GetFullHrefString(string, bool)

Get an appropriate Href from the input URL that can be used in a href attribute.

public static string GetFullHrefString(string url, bool frontend)

Parameters

url string

Input URL string, i.e. Default.aspx?ID=123, www.google.com or info@dynamicweb.com.

frontend bool

Optional. Parses the data for the frontend.

Returns

string

Returns string representation of the link with the right protocol etc.

RequestObject(string, Type)

Request data from the context and parse it into the specified type.

public static object? RequestObject(string key, Type type)

Parameters

key string

The parameter key to request.

type Type

The type to parse the value to.

Returns

object
To top