title: Why can't I use HttpServerUtility.HtmlEncode inside a class?
body: <p>I am trying to use the following code:</p>
  
  <pre><code>string myString = HttpServerUtility.HtmlEncode("my link &amp; details");
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <blockquote>
    <p>An object reference is required for the nonstatic field, method, or property.</p>
  </blockquote>
  
  <p>Why can't I use <code>HttpServerUtility.HtmlEncode</code> inside a class?</p>