signmessage.aspx.cs
资源名称:moban.rar [点击查看]
上传用户:szraylite
上传日期:2018-06-06
资源大小:11546k
文件大小:2k
源码类别:
软件测试
开发平台:
Java
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using System.Data.OleDb;
- using ENTERPRISE.BusinessLogicLayer;
- using ENTERPRISE.DataAccessHelper;
- using ENTERPRISE.DataAccessLayer;
- public partial class signmessage : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- }
- protected void sign_Click(object sender, EventArgs e)
- {
- NoSortHashtable ht = new NoSortHashtable();
- ht.Add("guest_name", SqlStringFormat.GetQuotedString(guest_name.Text));
- ht.Add("sex", SqlStringFormat.GetQuotedString(sexy.Text));
- ht.Add("email", SqlStringFormat.GetQuotedString(email.Text));
- ht.Add("page", SqlStringFormat.GetQuotedString(webside.Text));
- ht.Add("phone", SqlStringFormat.GetQuotedString(phone.Text));
- ht.Add("city", SqlStringFormat.GetQuotedString(city.Text));
- ht.Add("content", System.Web.HttpUtility.HtmlEncode(SqlStringFormat.GetQuotedString(content.Text)));
- ht.Add("booktime", SqlStringFormat.GetQuotedString(System.DateTime.Now.ToString()));
- Messages message = new Messages();
- message.Add(ht);
- Response.Write("留言成功,我们会尽快给你一个满意的答复!");
- }
- }