audio.aspx.cs
资源名称:WebSite1.rar [点击查看]
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:1k
源码类别:
SCSI/ASPI
开发平台:
Others
- 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 System.Text;
- using System.Security.Cryptography;
- public partial class audio : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
- string strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("~/App_Data/zzu.mdb") + ";";
- OleDbConnection conn = new OleDbConnection(strConnection);
- conn.Open();
- OleDbCommand cmd1 = new OleDbCommand("insert into SpKd (ID,GoodsName,ClassName,MarktePrice) values('" + Session ["GWC_ID"] + "','" + DetailsView1.Rows[1].Cells[1].Text + "','" + "声卡" + "','" + DetailsView1.Rows[3].Cells[1].Text + "')", conn);
- cmd1.ExecuteNonQuery();
- conn.Close();
- Session["GWC_ID"] = Convert.ToInt32(Session["GWC_ID"]) + 1;
- Response.Redirect("Default.aspx");
- }
- }