예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request.QueryString["ArmyNo"] != null)
         {
             string armyNo = Request.QueryString["ArmyNo"].ToString();
             namePnl.Visible = true;
             DataTable dt = new bllBasicInfo().SearchCommandoByStuBaNo(armyNo);
             tbxRnk.Text    = dt.Rows[0]["RankName"].ToString();
             tbxName.Text   = dt.Rows[0]["Name"].ToString();
             tbxArmsNo.Text = " (" + dt.Rows[0]["ArmyNo"].ToString() + ")";
         }
         else
         {
             Session["ArmyNo"] = null;
             namePnl.Visible   = false;
         }
     }
     MessageController.Clear(Page);
 }