Skip to content

BizArk.Core.Extensions.WebExt

Brian Brewder edited this page Apr 2, 2017 · 1 revision

Back to BizArk.Core API Reference

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.

Clone this wiki locally