Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (!IsLoginUser)
         {
             lblMsg.Text        = "对不起,您没有模拟用户的权限!";
             btnConfirm.Enabled = false;
         }
         else
         {
             lblMsg.Text        = "";
             btnConfirm.Enabled = true;
         }
         string to = bll.IsExist(fromUserCode);
         if (!string.IsNullOrEmpty(to))
         {
             txtUserCode.Text = to;
         }
     }
 }