Exemple #1
0
    public void Forward_Click(object sender, EventArgs e)
    {
        int PMID = (int)Util.Val(Request.QueryString["pmid"]);

        ProviderReadMessage GetMessage = new ProviderReadMessage();
        GetMessage.FillUp(PMID, UserIdentity.UserID);

        string ReplySubject = GetMessage.Subject;

        GetMessage = null;

        Response.Redirect("pmsend.aspx?method=forward&pmid=" + PMID + "&subject=" + Server.UrlEncode(ReplySubject));
    }
Exemple #2
0
    private void LoadMessage(int PMID)
    {
        ProviderReadMessage GetMessage = new ProviderReadMessage();
        GetMessage.FillUp(PMID, UserIdentity.UserID);

        lblsubject.Text = "<b>From&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subject: " + GetMessage.Subject + "</b>";
        lblsenderinfo.Text = "<a href=userprofile.aspx?uid=" + GetMessage.SenderUserID + ">" + GetMessage.SenderUserName + "</a>";
        lblsenderinfo.Attributes.Add("onmouseover", "Tip('View <b>" + GetMessage.SenderUserName + "</b> profile.', BGCOLOR, '#FFFBE1', BORDERCOLOR, '#acc6db')");
        lblsenderinfo.Attributes.Add("onmouseout", "UnTip()");
        lbldate.Text = Utility.FormatDate(GetMessage.DateSent);
        lblemailsender.Text = "<a href=emailuser.aspx?uid=" + GetMessage.SenderUserID + "><img src='images/email_icon.gif' align='absmiddle' border='0'></a>";
        lblemailsender.Attributes.Add("onmouseover", "Tip('Send <b>" + GetMessage.SenderUserName + "</b> an email.', BGCOLOR, '#FFFBE1', BORDERCOLOR, '#acc6db')");
        lblemailsender.Attributes.Add("onmouseout", "UnTip()");
        lblmessage.Text = GetMessage.Message;

        btnReply.Attributes.Add("onmouseover", "Tip('Reply to <b>" + GetMessage.Subject + "</b> message.', BGCOLOR, '#FFFBE1', BORDERCOLOR, '#acc6db')");
        btnReply.Attributes.Add("onmouseout", "UnTip()");
        btnForward.Attributes.Add("onmouseover", "Tip('Forward <b>" + GetMessage.Subject + "</b> message.', BGCOLOR, '#FFFBE1', BORDERCOLOR, '#acc6db')");
        btnForward.Attributes.Add("onmouseout", "UnTip()");
        btnDelete.Attributes.Add("onmouseover", "Tip('Delete <b>" + GetMessage.Subject + "</b> message.', BGCOLOR, '#FFFBE1', BORDERCOLOR, '#acc6db')");
        btnDelete.Attributes.Add("onmouseout", "UnTip()");

        GetMessage = null;
    }