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
urlstringInput 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
urlstringInput URL string, i.e. Default.aspx?ID=123, www.google.com or info@dynamicweb.com.
frontendboolOptional. 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)