protected void btnCancel_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(txtUserCode.Text.Trim())) { //return; } Pkurg.PWorldBPM.Common.Services.OrgService services = new Pkurg.PWorldBPM.Common.Services.OrgService(); Pkurg.PWorldBPM.Common.Info.UserInfo model = services.GetUserInfo(fromUserCode); if (model != null) { System.Web.HttpContext.Current.Session["BPM_User"] = model; //Delete bll.Delete(fromUserCode); } Response.Redirect("~/Login.aspx"); }