protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Request.QueryString["id"] != null) { Business.correcting correcting = new Business.correcting(); Business.correctingData[] correctingdata = correcting.Select(Request.QueryString["id"]); Label1.Text = correctingdata[0].userid; Label2.Text = correctingdata[0].ctime; Label3.Text = correctingdata[0].ccon; correcting = null; correctingdata = null; } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Request.QueryString["id"] != null) { Business.correcting correcting = new Business.correcting(); Business.correctingData[] correctingdata = correcting.Select(Request.QueryString["id"]); hwtit.Text = correctingdata[0].hwtit; userid.Text = correctingdata[0].userid; ctime.Text = correctingdata[0].ctime; ccon.Text = correctingdata[0].ccon; ter.Text = correctingdata[0].ter; cdate.Text = correctingdata[0].cdate; scores.Text = correctingdata[0].scores; messages.Text = correctingdata[0].messages; correcting = null; correctingdata = null; } } }