protected void LinkButton1_Click(object sender, EventArgs e) { Account a = _ac.GetAccountByID(_webcontext.AccountID); bt_invite.Text = "Đã gửi lời mời"; bt_invite.ForeColor = System.Drawing.Color.Maroon; _email.SendInvitations1(_usersession.CurrentUser, a.Email, " Mời bạn: "); }
protected void btn_add_de_Click(object sender, EventArgs e) { _presenter = new ProfileDisplayPresenter(); _presenter.Init(this); //moi _email.SendInvitations1(_usersession.CurrentUser, lblemail.Text, " Mời bạn: "); btn_ok.Visible = true; btn_add_de.Visible = false; }
protected void LinkButton1_Click(object sender, EventArgs e) { if (_usersession != null) { Account a = _ac.GetAccountByID(idac); bt_invite.Text = "Đã gửi lời mời"; bt_invite.ForeColor = System.Drawing.Color.Maroon; _email.SendInvitations1(_usersession.CurrentUser, a.Email, " Mời bạn: "); } else { _redirect.GoToAccountLoginPage(); } }