protected void Page_Load(object sender, EventArgs e) { WS.UserInf uinf = new UserInf(); var q = uinf.GetUserList(); var qq = from ee in q where ee.UserID != Code.CookieHelper.Get("id") select ee; this.GridView1.DataSource = qq; this.GridView1.DataBind(); }