Exemplo n.º 1
0
    protected void imgSend_Click(object sender, ImageClickEventArgs e)
    {
        string MailBody = dvMessage.InnerHtml;

        MailBody += "<br><br>";
        MailBody += "gönderenin notu: " + txtNote.Text;

        if (MailTemplates.Send_FriendMail(MailTemplates.SendFriendToJob, txtTo.Text, txtSubject.Text, MailBody))
        {
            ShowModal.Show(UserControls_Common_uModalPopup.Icons.info, PIKCV.COM.EnumDB.ErrorTypes.NoticeSendFriend, true, true);
        }
        //Response.Write("<script>alert('" + PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoticeSendFriend) + "'); window.close();</script>");
        else
        {
            ShowModal.Show(UserControls_Common_uModalPopup.Icons.error, PIKCV.COM.Data.GetErrorMessageTitleCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.AsyncPostBackError), PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.AsyncPostBackError), false);
        }
    }