コード例 #1
0
    public string getNickName(object obj)
    {
        string log = obj.ToString();

        Tz888.BLL.Register.MemberInfoBLL objLog = new Tz888.BLL.Register.MemberInfoBLL();
        return(objLog.getNickName(log));
    }
コード例 #2
0
ファイル: RegisterMail.cs プロジェクト: 262734254/TopfoManage
        //发送确认邮件
        public void SendMail(string url, string name, string mail, string validurl, string absimgurl)
        {
            Tz888.BLL.AutoSendMsg            msg    = new Tz888.BLL.AutoSendMsg();
            Tz888.BLL.Register.MemberInfoBLL member = new MemberInfoBLL();

            string nickName = member.getNickName(name);
            string content;

            content = msg.DownUrl(url, "GB2312");
            content = content.Replace("$NICKNAME$", nickName);
            content = content.Replace("$LOGNAME$", name);
            content = content.Replace("$EMAIL$", mail);
            content = content.Replace("$CONFIRMURL$", validurl);
            content = content.Replace("../..", absimgurl);

            msg.SendEmail(mail, "完成验证即可享受TopFo的特色服务", content);
        }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     InfoID  = Convert.ToInt64(Request.QueryString["id"]);
     pageurl = Request.QueryString["url"].ToString();
     if (Page.User.Identity.Name == "")
     {
         divLogin.Visible   = true;
         divLoginOk.Visible = false;
     }
     else
     {
         divLogin.Visible   = false;
         divLoginOk.Visible = true;
         Tz888.BLL.Register.MemberInfoBLL regObj = new Tz888.BLL.Register.MemberInfoBLL();
         lblNickName.Text = regObj.getNickName(Page.User.Identity.Name);
     }
     this.btnSend.Attributes.Add("onclick", "loading();");
 }
コード例 #4
0
ファイル: RegisterMail.cs プロジェクト: 262734254/TopfoManage
        //发送成功信件
        public void SendSuccessMail(string url, string name, string mail, string absimgurl)
        {
            Tz888.BLL.Register.MemberInfoBLL member = new MemberInfoBLL();
            Tz888.BLL.Register.LoginInfoBLL  log    = new LoginInfoBLL();
            Tz888.BLL.AutoSendMsg            msg    = new Tz888.BLL.AutoSendMsg();

            string nickName    = member.getNickName(name);
            string managerType = log.GetManagerType(name);
            string content;

            content = msg.DownUrl(url, "GB2312");
            content = content.Replace("$LOGINNAME$", name);
            content = content.Replace("$NICKNAME$", nickName);
            content = content.Replace("$MANAGERTYPE$", managerType);
            content = content.Replace("c" + managerType.Trim(), "");
            content = content.Replace("../..", absimgurl);
            content = content.Replace("$LOGINURL$", absimgurl);
            msg.SendEmail(mail, "验证成功,欢迎加入拓富大家庭", content);
        }
コード例 #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     InfoID = Convert.ToInt64(Request.QueryString["id"]);
     if (Page.User.Identity.Name == "")
     {
         divLogin.Visible   = true;
         divLoginOk.Visible = false;
     }
     else
     {
         divLogin.Visible   = false;
         divLoginOk.Visible = true;
         Tz888.BLL.Register.MemberInfoBLL regObj = new Tz888.BLL.Register.MemberInfoBLL();
         lblNickName.Text = regObj.getNickName(Page.User.Identity.Name);
     }
     if (!Page.IsPostBack)
     {
         Tz888.BLL.Conn dal = new Tz888.BLL.Conn();
         int            c   = dal.GetCount("InfoCommentTab", "InfoID", "InfoID=" + InfoID);
         lblCount.Text = c.ToString();
     }
 }
コード例 #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string loginName = "";

        try { loginName = Request.Cookies["topfo.com_CKData"].Value; }
        catch (NullReferenceException exp)
        {
            loginName = "";
        }
        if (loginName.Trim() != "" || loginName != string.Empty)
        {
            Tz888.BLL.Register.MemberInfoBLL logBLL = new Tz888.BLL.Register.MemberInfoBLL();

            nickName = logBLL.getNickName(loginName);
            string email = logBLL.GetEmailByLoginName(loginName);

            txtemail.Text     = email;
            name.Text         = nickName;
            content.InnerText = "  我发现了一个很好的网站,已经成为它的会员了。我觉得它也很适合你,你可以到下面的地址去注册: http://member.topfo.com/Register/Register.aspx ,感受一下它的功能和良好服务。\r" +
                                "  另外,如果你注册的时候在“邀请人”一栏填上我的昵称,还能给我带来500积分哦。我的昵称是“" + nickName + "”,呵呵,快去注册吧! ";
            pnick2.Text = nickName;
        }
    }