欢迎来到天天文库
浏览记录
ID:33681213
大小:521.00 KB
页数:77页
时间:2019-02-28
《网上购物系统的设计与实现源代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、cm.aspx(页面)<%@PageLanguage="C#"MasterPageFile="~/MasterPage.master"AutoEventWireup="true"CodeFile="cm1.aspx.cs"Inherits="cm1"Title="无标题页"%>地址2、="server">邮编电话真实姓名3、click="Button1_Click"Text="下一步"style="height:26px"/>cm.aspx.csusingSystem;usingSystem.Collections;usingSystem.Configuration;usingSystem.Data;usingSystem.L4、inq;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.HtmlControls;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Xml.Linq;usingSystem.Data.SqlClient;publicpartialclasscm1:System.Web.UI.Pa5、ge{protectedvoidPage_Load(objectsender,EventArgse){}classinsert{}protectedvoidButton1_Click(objectsender,EventArgse){DataTabledtable;stringsql=ConfigurationManager.ConnectionStrings["Con"].ConnectionString.ToString();SqlConnectionsqlb=newSqlConnection(s6、ql);sqlb.Open();stringstrt="select*fromgouwuchewhereusername='"+Session["name"].ToString()+"'";SqlDataAdaptersqlt=newSqlDataAdapter(strt,sqlb);DataSetds=newDataSet();DataRowCollectiondrow;sqlt.Fill(ds,"tab");dtable=ds.Tables["tab"];drow=dtable.Rows;Rand7、omrnd=newRandom();longn=rnd.Next(10000,99999);longm=rnd.Next(10000,99999);longx=rnd.Next(10000,99999);for(inti=0;i8、ername,pho,sname,time,photo,sno)values(@id,@sum,@sprice,@youbian,@name,@address,@username,@pho,@sname,@time,@photo,@sno)";com.Parameters.AddWithValue("@id",n.ToString()+m.ToString()+x.ToString());com.Parameters.AddWithValue("@sum
2、="server">邮编电话真实姓名3、click="Button1_Click"Text="下一步"style="height:26px"/>cm.aspx.csusingSystem;usingSystem.Collections;usingSystem.Configuration;usingSystem.Data;usingSystem.L4、inq;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.HtmlControls;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Xml.Linq;usingSystem.Data.SqlClient;publicpartialclasscm1:System.Web.UI.Pa5、ge{protectedvoidPage_Load(objectsender,EventArgse){}classinsert{}protectedvoidButton1_Click(objectsender,EventArgse){DataTabledtable;stringsql=ConfigurationManager.ConnectionStrings["Con"].ConnectionString.ToString();SqlConnectionsqlb=newSqlConnection(s6、ql);sqlb.Open();stringstrt="select*fromgouwuchewhereusername='"+Session["name"].ToString()+"'";SqlDataAdaptersqlt=newSqlDataAdapter(strt,sqlb);DataSetds=newDataSet();DataRowCollectiondrow;sqlt.Fill(ds,"tab");dtable=ds.Tables["tab"];drow=dtable.Rows;Rand7、omrnd=newRandom();longn=rnd.Next(10000,99999);longm=rnd.Next(10000,99999);longx=rnd.Next(10000,99999);for(inti=0;i8、ername,pho,sname,time,photo,sno)values(@id,@sum,@sprice,@youbian,@name,@address,@username,@pho,@sname,@time,@photo,@sno)";com.Parameters.AddWithValue("@id",n.ToString()+m.ToString()+x.ToString());com.Parameters.AddWithValue("@sum
3、click="Button1_Click"Text="下一步"style="height:26px"/>cm.aspx.csusingSystem;usingSystem.Collections;usingSystem.Configuration;usingSystem.Data;usingSystem.L
4、inq;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.HtmlControls;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Xml.Linq;usingSystem.Data.SqlClient;publicpartialclasscm1:System.Web.UI.Pa
5、ge{protectedvoidPage_Load(objectsender,EventArgse){}classinsert{}protectedvoidButton1_Click(objectsender,EventArgse){DataTabledtable;stringsql=ConfigurationManager.ConnectionStrings["Con"].ConnectionString.ToString();SqlConnectionsqlb=newSqlConnection(s
6、ql);sqlb.Open();stringstrt="select*fromgouwuchewhereusername='"+Session["name"].ToString()+"'";SqlDataAdaptersqlt=newSqlDataAdapter(strt,sqlb);DataSetds=newDataSet();DataRowCollectiondrow;sqlt.Fill(ds,"tab");dtable=ds.Tables["tab"];drow=dtable.Rows;Rand
7、omrnd=newRandom();longn=rnd.Next(10000,99999);longm=rnd.Next(10000,99999);longx=rnd.Next(10000,99999);for(inti=0;i8、ername,pho,sname,time,photo,sno)values(@id,@sum,@sprice,@youbian,@name,@address,@username,@pho,@sname,@time,@photo,@sno)";com.Parameters.AddWithValue("@id",n.ToString()+m.ToString()+x.ToString());com.Parameters.AddWithValue("@sum
8、ername,pho,sname,time,photo,sno)values(@id,@sum,@sprice,@youbian,@name,@address,@username,@pho,@sname,@time,@photo,@sno)";com.Parameters.AddWithValue("@id",n.ToString()+m.ToString()+x.ToString());com.Parameters.AddWithValue("@sum
此文档下载收益归作者所有