protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["zuoyeid"] != null && Request.QueryString["banjiid"] != null) { Labelbanji.Text = BanjiInfo.GetBanjiName(int.Parse(Request.QueryString["banjiid"])); Labelzuoyename.Text = ZuoyeInfo.getZuoyeName(int.Parse(Request.QueryString["zuoyeid"])); DataTable dt = ZuoyeInfo.GetQuantiStuZuoyeXinxi(int.Parse(Request.QueryString["banjiid"]), int.Parse(Request.QueryString["zuoyeid"])); GridView1.DataSource = dt; GridView1.DataBind(); } else { Response.Redirect("default.aspx"); } } }