資源簡介
用C#+SQL數據庫開發的網上書店系統
包括系統開發的全過程
源代碼完整

代碼片段和文件信息
using?System;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Web;
using?System.Web.SessionState;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.HtmlControls;
namespace?BookStore?{
????public?class?AddToCart?:?System.Web.UI.Page?{
????????public?AddToCart()?{
????????????Page.Init?+=?new?System.EventHandler(Page_Init);
????????}
????????//*******************************************************
????????//
????????//?The?Page_Load?event?on?this?page?is?used?to?add?the
????????//?identified?product?to?the?user‘s?shopping?cart?and?then?immediately
????????//?redirect?to?the?shoppingcart?page?(this?avoids?problems?were?a?user?hits?
????????//?“refresh“?and?accidentally?adds?another?product?to?the?cart)??
????????//????
????????//?The?product?to?add?to?the?cart?is?specified?using
????????//?a?querystring?argument?to?the?page.
????????//
????????//*******************************************************
????????private?void?Page_Load(object?sender?System.EventArgs?e)?{
??????????????????????
????????????if?(Request.Params[“BookID“]?!=?null)?{
????????
????????????????BookStore.BookStoreDBO?cart?=?new?BookStore.BookStoreDBO();
????????????
????????????????//?Obtain?current?user‘s?shopping?cart?ID??
????????????????String?cartId?=?cart.GetShoppingCartId();???
????????????
????????????????//?Add?Product?Item?to?Cart
????????????????cart.AddItemtoShoppingCart(cartId?Int32.Parse(Request.Params[“BookID“])?1);
????????????}??
????????
????????????Response.Redirect(“ShoppingCart.aspx“);
????????}
????????private?void?Page_Init(object?sender?EventArgs?e)?{
????????????//
????????????//?CODEGEN:?This?call?is?required?by?the?ASP.NET?Web?Form?Designer.
????????????//
????????????InitializeComponent();
????????}
#region?Web?Form?Designer?generated?code
????????///?
????????///?Required?method?for?Designer?support?-?do?not?modify
????????///?the?contents?of?this?method?with?the?code?editor.
????????///?
????????private?void?InitializeComponent()?{????
????????????this.Load?+=?new?System.EventHandler(this.Page_Load);
????????}
#endregion
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1483??2005-01-19?14:07??網上書店系統\readme.txt
?????文件????????379??2004-03-29?09:17??網上書店系統\BookStore\AddToCart.aspx
?????文件???????2247??2004-03-29?10:16??網上書店系統\BookStore\AddToCart.aspx.cs
?????文件???????1733??2003-10-27?14:11??網上書店系統\BookStore\AddToCart.aspx.resx
?????文件???????2115??2004-03-29?08:56??網上書店系統\BookStore\AssemblyInfo.cs
?????文件???????3858??2004-04-03?09:01??網上書店系統\BookStore\BookDetails.aspx
?????文件???????2332??2004-04-03?09:01??網上書店系統\BookStore\BookDetails.aspx.cs
?????文件???????5317??2004-03-28?20:19??網上書店系統\BookStore\BookDetails.aspx.resx
?????文件??????14366??2004-03-29?10:54??網上書店系統\BookStore\BookStore.csproj
?????文件????????116??2004-04-03?08:57??網上書店系統\BookStore\BookStore.csproj.webinfo
?????文件??????28674??2004-04-03?09:03??網上書店系統\BookStore\BookStoreDBO.cs
?????文件???????2805??2004-04-01?11:02??網上書店系統\BookStore\BooksList.aspx
?????文件???????1530??2004-03-29?10:16??網上書店系統\BookStore\BooksList.aspx.cs
?????文件???????5317??2004-03-28?16:52??網上書店系統\BookStore\BooksList.aspx.resx
?????文件????????915??2004-03-31?23:55??網上書店系統\BookStore\Bottom.ascx
?????文件???????1048??2003-11-12?21:40??網上書店系統\BookStore\Bottom.ascx.cs
?????文件??????????0??2002-02-21?15:10??網上書店系統\BookStore\Bottom.ascx.resx
?????文件???????3425??2004-03-31?11:13??網上書店系統\BookStore\CheckOut.aspx
?????文件???????2893??2004-04-01?13:26??網上書店系統\BookStore\CheckOut.aspx.cs
?????文件???????5317??2004-03-30?22:59??網上書店系統\BookStore\CheckOut.aspx.resx
?????文件???????1655??2004-03-31?09:04??網上書店系統\BookStore\Default.aspx
?????文件???????1677??2004-03-29?10:20??網上書店系統\BookStore\Default.aspx.cs
?????文件???????5317??2004-03-29?10:20??網上書店系統\BookStore\Default.aspx.resx
?????文件?????????76??2004-03-29?08:56??網上書店系統\BookStore\Global.asax
?????文件???????1375??2004-03-29?08:56??網上書店系統\BookStore\Global.asax.cs
?????文件???????1733??2002-01-30?13:04??網上書店系統\BookStore\Global.asax.resx
?????文件???????1858??2004-04-01?00:11??網上書店系統\BookStore\Header.ascx
?????文件???????1177??2004-03-29?09:17??網上書店系統\BookStore\Header.ascx.cs
?????文件???????5317??2004-03-28?20:51??網上書店系統\BookStore\Header.ascx.resx
?????文件???????4001??2004-04-03?09:01??網上書店系統\BookStore\Login.aspx
............此處省略174個文件信息
評論
共有 條評論