main_msg_save.aspx.cs
上传用户:woolgirl
上传日期:2020-04-18
资源大小:243k
文件大小:2k
- using System;
- using System.Data;
- using System.Data.OleDb;//ACCESS
- 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;
- //该源码下载自www.51aspx.com(51aspx.com)
- public partial class LiuYinMSG_main_msg_save : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string eid = Request.QueryString["id"];
- idd.Text = eid.ToString();
- uid.Text = eid.ToString();
- if (!liuyinconn.IsNum(eid))
- {
- Response.Write("非数字");
- Response.End();
- }
-
- }
- protected void msg_Clickhf(object sender, EventArgs e)
- {
- string yl_id;
- string yl_uid;
- string yl_uidHF;
- yl_id = this.idd.Text.ToString();
- yl_uid = this.uid.Text.ToString();
- yl_uidHF = Server.HtmlEncode(this.yl_uidHF.Text.ToString());
- OleDbConnection conn = liuyinconn.connstr();
- string TableName = "yl_message";
- string sql = "Select * FROM [" + TableName + "]";
- try
- {
- conn.Open();//打开数据库链接 ;
- }
- catch
- {
- Response.Write("参数错误!");
- Response.End();
- }
-
- Response.Write(sql);
- Response.Write(yl_id);
- Response.Write(yl_uid);
- Response.Write(yl_uidHF);
- Response.End();
- }
-
- }