Asp.net源码专业站
首页->博客空间->SpaceBuilderV1.0RC免安装版源码(51aspx调测)>>BasicWebControls/Channel/AreaRepeater.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:SpaceBuilderV1.0RC免安装版源码(51aspx调测)
当前文件:文件类型 SpaceBuilderV10RC/BasicWebControls/Channel/AreaRepeater.cs[7K,2009-6-12 11:55:43]打开代码结构图
普通视图
		            
1//------------------------------------------------------------------------------ 2// <copyright company="Tunynet"> 3// Copyright (c) Tunynet Network Technology Co., Ltd. All rights reserved. 4// </copyright> 5//------------------------------------------------------------------------------ 6 7using System; 8using System.Collections.Generic; 9using System.Text; 10using System.Web.UI.WebControls; 11using System.Collections; 12using SpaceBuilder.Components; 13using System.Web.UI; 14using SpaceBuilder.Events.Components; 15using SpaceBuilder.Jobs.SiteUrls; 16using SpaceBuilder.Utils; 17using SpaceBuilder.Jobs.Components; 18using SpaceBuilder.Rewards.Components; 19using TunyNet.Utils; 20 21namespace SpaceBuilder.Web.Controls 22{ 23 public class AreaRepeater : Repeater 24 { 25 private ArrayList areas; 26 private int loadedAreaCount = 0; // 已经加载的地区数目 27 28 public void Bind() 29 { 30 this.ItemDataBound += new RepeaterItemEventHandler(AreaRepeater_ItemDataBound); 31 32 areas = Statisticss.GetAreaStatisticss(this.AreaCode, this.SortBy, this.SortOrder, this.OnlyShowLeastArea); 33 34 if ((this.DisplayItemCount != -1) && (areas.Count > this.DisplayItemCount)) 35 areas = areas.GetRange(0, this.DisplayItemCount); 36 37 if (areas.Count > 0) 38 { 39 this.DataSource = this.areas; 40 this.DataBind(); 41 } 42 else 43 { 44 this.DataSource = null; 45 this.DataBind(); 46 } 47 } 48 49 protected override void Render(HtmlTextWriter writer) 50 { 51 this.Bind(); 52 if (this.areas.Count > 0) 53 { 54 base.Render(writer); 55 } 56 } 57 58 事件 136 137 138 属性 220 221 } 222 223} 224
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:SpaceBuilderV1.0RC免安装版源码(51aspx调测)
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146