protected void ddlAssignedTo_SelectedIndexChanged(object sender, EventArgs e) { MembershipController membership = new MembershipController(); UserInfo assingto = membership.GetUserById(Convert.ToInt32(ddlAssignedTo.SelectedValue)); EntCategory.AssignedTo = assingto; tbxDefaultEmail.Text = EntCategory.AssignedTo.Email; tbxAlternativeEmail.Focus(); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { MembershipController mcontroller = new MembershipController(); User entCurrenUser = (User)Session["currentUser"]; EntTicket = new Ticket(); EntTicket.CreatedBy = mcontroller.GetUserById(entCurrenUser.IdUser); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { MembershipController membershipCntrllr = new MembershipController(); int IdUser = int.Parse(Request.Params["IdUser"]); if (IdUser > 0) { EntUser = membershipCntrllr.GetUserById(IdUser); rfvConfirmPassword.Enabled = false; rfvPassword.Enabled = false; SetDataToForm(); tbxUserName.Focus(); } else { EntUser = new UserInfo(); } tbxUserName.Focus(); } }