Asp.net源码专业站
预留广告位
首页->电子商务->品杰电子商务购物平台系统源码>>Controls/HotProduct.ascx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:品杰电子商务购物平台系统源码
当前文件:文件类型 PinJieShop/Controls/HotProduct.ascx.cs[1K,2009-6-12 11:52:01]打开代码结构图
高亮显示
		            namespace shop.Controls
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;
	using System.Configuration;
	using shop.DbBase;
	/// <summary>
	///		HotProduct 的摘要说明。
	/// </summary>
	public class HotProduct : System.Web.UI.UserControl
	{
		protected System.Web.UI.WebControls.DataList DataList1;

		private void Page_Load(object sender, System.EventArgs e)
		{
			// 在此处放置用户代码以初始化页面
			string sSQL = "Select top 6 ProductId,PName,PPicture,PPrice,PMemberPrice,PClick from Product where PStock>0 order by PClick desc,PName";
			DataSet oDS = OleBase.ExecuteSql4Ds(sSQL);
			DataList1.DataSource = oDS.Tables[0].DefaultView;
			DataList1.DataBind();
		}

		#region Web 窗体设计器生成的代码
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		///		设计器支持所需的方法 - 不要使用代码编辑器
		///		修改此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion
	}
}


        
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:品杰电子商务购物平台系统源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146