可能是什么问题呢?我收到此消息:访问非静态成员 labb3.linkClass.getLinks() 需要对象引用
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);
}
}
}
}