protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Labelbanji.Text     = BanjiInfo.GetBanjiName(int.Parse(Request.QueryString["banjiid"]));
         Labelzuoyename.Text = ZuoyeInfo.getZuoyeName(int.Parse(Request.QueryString["zuoyeid"]));
         DataTable studt = BanjiInfo.GetStudentNameAndUsername(int.Parse(Request.QueryString["banjiid"]));
         ListBox1.DataSource = studt;
         ListBox1.DataBind();
     }
 }
Example #2
0
 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"]));
             BindFenxi();
             BindTimu();
             Labelsjrs.Text = ZuoyeInfo.GetZuoyeShangjiaoRenShu(int.Parse(Request.QueryString["zuoyeid"]), int.Parse(Request.QueryString["banjiid"])).ToString();
         }
         else
         {
             Response.Redirect("default.aspx");
         }
     }
 }
 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");
         }
     }
 }