private void SetBind() { reid.Value = Request.QueryString["reid"]; rname.InnerHtml = Request.QueryString["rname"]; OxcoderIBL.InviteIBL i = new OxcoderBL.InviteBL(); int number = i.GetInviteNumByEntp(Session["enterpriceID"].ToString()); numDiv.InnerHtml = number + ""; inviteNumVal.Value = number + ""; Page.DataBind(); }
protected void send_Btn_Click(object sender, EventArgs e) { string[] mailTo = oneEmail.Value.Trim(',').Split(','); string subject = Session["enterpriceName"].ToString() + mailSubject.Value; string content = mailContent.InnerHtml; content = content.Replace("<br>", "<br />"); content = content.Replace("[公司]", Session["enterpriceName"].ToString()); content = content.Replace("[时间]", System.DateTime.Now.ToString()); content = content.Replace("[链接]", "www.oxcoder.com/Test.aspx?reid="+reid.Value); int len = mailTo.Length; if (len > Convert.ToInt32(inviteNumVal.Value)) { invitehint.Style.Value = "display:block"; } else { OxcoderIBL.InviteIBL invit = new OxcoderBL.InviteBL(); invit.sendInvites(mailTo, subject, content, Session["enterpriceID"].ToString()); Response.Redirect("Recruit_list.aspx"); } }
protected void send_Btn_Click(object sender, EventArgs e) { string[] mailTo = oneEmail.Value.Trim(',').Split(','); string subject = Session["enterpriceName"].ToString() + mailSubject.Value; string content = mailContent.InnerHtml; content = content.Replace("<br>", "<br />"); content = content.Replace("[公司]", Session["enterpriceName"].ToString()); content = content.Replace("[时间]", System.DateTime.Now.ToString()); content = content.Replace("[链接]", "www.oxcoder.com/Test.aspx?reid=" + reid.Value); int len = mailTo.Length; if (len > Convert.ToInt32(inviteNumVal.Value)) { invitehint.Style.Value = "display:block"; } else { OxcoderIBL.InviteIBL invit = new OxcoderBL.InviteBL(); invit.sendInvites(mailTo, subject, content, Session["enterpriceID"].ToString()); Response.Redirect("Recruit_list.aspx"); } }