protected void btnConfirm_Click(object sender, EventArgs e) { string toUserCode = txtUserCode.Text.Trim().ToLower(); Pkurg.PWorldBPM.Common.Services.OrgService services = new Pkurg.PWorldBPM.Common.Services.OrgService(); Pkurg.PWorldBPM.Common.Info.UserInfo model = services.GetUserInfo(toUserCode); if (model != null) { _BPMContext.LoginId = toUserCode; //Insert bll.Insert(fromUserCode, toUserCode); lblMsg.Text = ""; Response.Redirect("~/Login.aspx"); } else { lblMsg.Text = "登录名不存在!"; } }