您目前尚未登陆,请选择【登陆】或【注册
首页->电子商务->明日网上商城购物系统源码>>User/GoodsDetail.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:明日网上商城购物系统源码
当前文件:文件类型 MingriNetShop/User/GoodsDetail.aspx.cs打开代码结构图
普通视图
		            
1using System; 2using System.Data; 3using System.Configuration; 4using System.Collections; 5using System.Web; 6using System.Web.Security; 7using System.Web.UI; 8using System.Web.UI.WebControls; 9using System.Web.UI.WebControls.WebParts; 10using System.Web.UI.HtmlControls; 11using System.Data.SqlClient; 12 13public partial class User_GoodsDetail : System.Web.UI.Page 14{ 15 MangerClass mcObj = new MangerClass(); 16 protected void Page_Load(object sender, EventArgs e) 17 { 18 if (!IsPostBack) 19 { 20 GetGoodsInfo(); 21 } 22 } 23 public string GetClass(int P_Int_ClassID) 24 { 25 string P_Str_ClassName = mcObj.GetClass(P_Int_ClassID); 26 return P_Str_ClassName; 27 } 28 public void GetGoodsInfo() 29 { 30 DataSet ds = mcObj.GetGoodsInfoByIDDs(Convert.ToInt32(Request["GoodsID"].Trim()), "GoodsInfo"); 31 txtName.Text = ds.Tables["GoodsInfo"].Rows[0][2].ToString(); 32 txtFName.Text = GetClass(Convert.ToInt32(ds.Tables["GoodsInfo"].Rows[0][1].ToString())); 33 txtBrand.Text = ds.Tables["GoodsInfo"].Rows[0][4].ToString(); 34 txtUnit.Text = ds.Tables["GoodsInfo"].Rows[0][5].ToString(); 35 txtWeight.Text = mcObj.VarStr(ds.Tables["GoodsInfo"].Rows[0][6].ToString(),2); 36 txtMarketPrice.Text =mcObj.VarStr(ds.Tables["GoodsInfo"].Rows[0][8].ToString(),2); 37 txtMemberPrice.Text =mcObj.VarStr(ds.Tables["GoodsInfo"].Rows[0][9].ToString(),2); 38 ImageMapPhoto.ImageUrl = ds.Tables["GoodsInfo"].Rows[0][7].ToString(); 39 cbxCommend.Checked = Convert.ToBoolean(ds.Tables["GoodsInfo"].Rows[0][10].ToString()); 40 cbxHot.Checked = Convert.ToBoolean(ds.Tables["GoodsInfo"].Rows[0][11].ToString()); 41 cbxDiscount.Checked = Convert.ToBoolean(ds.Tables["GoodsInfo"].Rows[0][13].ToString()); 42 txtShortDesc.Text = ds.Tables["GoodsInfo"].Rows[0][3].ToString(); 43 } 44 protected void btnExit_Click(object sender, EventArgs e) 45 { 46 if (Session["address"] == null) 47 Response.Redirect("index.aspx"); 48 else 49 { 50 51 string addr = Session["address"].ToString(); 52 Response.Redirect(addr); 53 } 54 } 55} 56
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:明日网上商城购物系统源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号