protected void BindZuoye() { string username = ((FormsIdentity)HttpContext.Current.User.Identity).Ticket.Name; string kechengid = Session["kechengid"].ToString(); DataTable dt = ZuoyeInfo.GetStuKechengZuoyeInfo(username, int.Parse(kechengid)); GridView1.DataSource = dt; GridView1.DataBind(); }