title: An object reference is required to access non-static member when trying to use arraylist
body: <p>What could be the problem?
  I get this message:
  An object reference is required to access non-static member labb3.linkClass.getLinks()</p>
  
  <pre><code>    namespace labb3
  {
      public partial class visalinks : System.Web.UI.Page
      {
          protected void Page_Load (object sender, EventArgs e)
          {
              userClass newUser = (userClass)Session["userClass"];
              ArrayList Poster = linkClass.getLinks();
  
              foreach (object o in Poster) {
                  linkClass lnks = (linkClass)o;
                  Response.Write(lnks.webbadress);
              }
          }
      }
  }
  </code></pre>