signmessage.aspx.cs
上传用户:szraylite
上传日期:2018-06-06
资源大小:11546k
文件大小:2k
源码类别:

软件测试

开发平台:

Java

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. using System.Data.OleDb;
  12. using ENTERPRISE.BusinessLogicLayer;
  13. using ENTERPRISE.DataAccessHelper;
  14. using ENTERPRISE.DataAccessLayer;
  15. public partial class signmessage : System.Web.UI.Page
  16. {
  17.         protected void Page_Load(object sender, EventArgs e)
  18.         {
  19.         }
  20.         protected void sign_Click(object sender, EventArgs e)
  21.         {
  22.             NoSortHashtable ht = new NoSortHashtable();
  23.             ht.Add("guest_name", SqlStringFormat.GetQuotedString(guest_name.Text));
  24.             ht.Add("sex", SqlStringFormat.GetQuotedString(sexy.Text));
  25.             ht.Add("email", SqlStringFormat.GetQuotedString(email.Text));
  26.             ht.Add("page", SqlStringFormat.GetQuotedString(webside.Text));
  27.             ht.Add("phone", SqlStringFormat.GetQuotedString(phone.Text));
  28.             ht.Add("city", SqlStringFormat.GetQuotedString(city.Text));
  29.             ht.Add("content", System.Web.HttpUtility.HtmlEncode(SqlStringFormat.GetQuotedString(content.Text)));
  30.             ht.Add("booktime", SqlStringFormat.GetQuotedString(System.DateTime.Now.ToString()));
  31.             Messages message = new Messages();
  32.             message.Add(ht);
  33.             Response.Write("留言成功,我们会尽快给你一个满意的答复!");
  34.         }
  35. }