jjAdd.aspx.cs
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:1k
源码类别:

Email客户端

开发平台:

Visual C++

  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. public partial class manage_jjAdd : System.Web.UI.Page
  12. {
  13.     BaseClass bc = new BaseClass();
  14.     protected void Page_Load(object sender, EventArgs e)
  15.     {
  16.     }
  17.     protected void Button1_Click(object sender, EventArgs e)
  18.     {
  19.         bc.ExecSQL("INSERT INTO tbNews( Title, Content, Style, Type, IssueDate)VALUES ('" + TextBox1.Text + "', '" + TextBox2.Text + "', '经济动向', '" + DropDownList1.Text + "', '" + DateTime.Now.ToString("yyyy-MM-dd") + "')");
  20.         Response.Write(bc.MessageBox("添加成功!"));
  21.     }
  22.     protected void Button2_Click(object sender, EventArgs e)
  23.     {
  24.         TextBox1.Text = "";
  25.         TextBox2.Text = "";
  26.     }
  27. }