  string userId = StrHelper.ConvertSql(this.Login1.UserName);
        string passWd = StrHelper.EncryptPassword(StrHelper.ConvertSql(this.Login1.Password), StrHelper.PasswordType.MD5);

        ShUserData ds = new ShUser().GetUserInfo(userId, passWd);
        if (ds.Tables[0].Rows.Count > 0)
        {
            DataRow dr = ds.Tables[0].Rows[0];
            userinfo.Uid = (int)dr[ShUserData.ID_FIELD];
            userinfo.UserId = dr[ShUserData.USERID_FIELD].ToString();
            userinfo.UserName = dr[ShUserData.USENAME_FIELD].ToString();
            userinfo.DeptId = (int)dr[ShUserData.DEPT_FIELD];
            userinfo.DeptNm = dr[ShUserData.DEPTNAME_FIELD].ToString();
            FormsAuthentication.SetAuthCookie(userinfo.UserId, false);
            FormsAuthentication.RedirectFromLoginPage(userinfo.UserId, false);
        }
        else
        {
            Jscript.AjaxAlert(this, "½ʧܣû");
        }