You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension methods that are useful when working with web objects without referencing System.Web.
Static Methods
public static string GetContentString(this WebResponse response) - Gets the content from a response.
public static string HtmlEncode(this string str) - Encodes a string for safe HTML.
public static string HtmlDecode(this string str) - Decodes an encoded string.
public static string UrlEncode(this string str) - Can be used to encode a query string value.
public static string UrlDecode(this string str) - Can be used to decode a url encoded value.
public static string ToQueryString(this object values, params string[] propNames) - Creates a query string without referencing System.Web. Property values are converted to strings using ConvertEx.ToString().
public static string GenerateSlug(this string phrase, int maxLength = int.MaxValue) - Transforms a string into an identifier that can be used in a url.