main_msg_save.aspx.cs
上传用户:woolgirl
上传日期:2020-04-18
资源大小:243k
文件大小:2k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. using System;
  2. using System.Data;
  3. using System.Data.OleDb;//ACCESS
  4. using System.Configuration;
  5. using System.Collections;
  6. using System.Web;
  7. using System.Web.Security;
  8. using System.Web.UI;
  9. using System.Web.UI.WebControls;
  10. using System.Web.UI.WebControls.WebParts;
  11. using System.Web.UI.HtmlControls;
  12. //该源码下载自www.51aspx.com(51aspx.com)
  13. public partial class LiuYinMSG_main_msg_save : System.Web.UI.Page
  14. {
  15.     protected void Page_Load(object sender, EventArgs e)
  16.     {
  17.         string eid = Request.QueryString["id"];
  18.                idd.Text = eid.ToString();
  19.                uid.Text = eid.ToString();
  20.                if (!liuyinconn.IsNum(eid))
  21.                { 
  22.                    Response.Write("非数字");
  23.                    Response.End();
  24.                }
  25.                    
  26.     }
  27.     protected void msg_Clickhf(object sender, EventArgs e)
  28.     {
  29.         string yl_id;
  30.         string yl_uid;
  31.         string yl_uidHF;
  32.         yl_id = this.idd.Text.ToString();
  33.         yl_uid = this.uid.Text.ToString();
  34.         yl_uidHF = Server.HtmlEncode(this.yl_uidHF.Text.ToString());
  35.         OleDbConnection conn = liuyinconn.connstr();
  36.         string TableName = "yl_message";
  37.         string sql = "Select * FROM [" + TableName + "]";
  38.         try
  39.         {
  40.             conn.Open();//打开数据库链接 ;
  41.         }
  42.         catch
  43.         {
  44.             Response.Write("参数错误!");
  45.             Response.End();
  46.         }
  47.             
  48.         Response.Write(sql);
  49.         Response.Write(yl_id);
  50.         Response.Write(yl_uid);
  51.         Response.Write(yl_uidHF);
  52.         Response.End();
  53.     }
  54.     
  55. }