您目前尚未登陆,请选择【登陆】或【注册
首页->博客论坛->SpaceBuilder v1.1源代码>>BlogControls/Club/BlogThreadListForClubBasePage.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:SpaceBuilder v1.1源代码


当前文件路径:SpaceBuider11/BlogControls/Club/BlogThreadListForClubBasePage.cs 文件类型
普通视图
		            
1//------------------------------------------------------------------------------ 2// <copyright company="Tunynet"> 3// Copyright (c) Tunynet Inc. All rights reserved. 4// </copyright> 5//------------------------------------------------------------------------------ 6 7using System; 8using System.Collections.Generic; 9using System.Text; 10using SpaceBuilder.Controls; 11using SpaceBuilder.Controls.Utils; 12 13//本类暂时不使用 14 15namespace SpaceBuilder.Blogs.Controls 16{ 17 public class BlogThreadListForClubBasePage : SBPage 18 { 19 SpaceBuilder.Controls.Utils.Pager pager; 20 CommendedBlogThreadListRepeater repeater; 21 22 protected override void OnInit(EventArgs e) 23 { 24 base.OnInit(e); 25 this.AttachControls(); 26 } 27 28 protected override void OnPreRender(EventArgs e) 29 { 30 base.OnPreRender(e); 31 this.BindPagingInfo(); 32 } 33 34 private void AttachControls() 35 { 36 pager= this.FindControl("pager") as SpaceBuilder.Controls.Utils.Pager; 37 repeater = this.FindControl("repeater") as CommendedBlogThreadListRepeater; 38 39 if (repeater != null && pager != null) 40 { 41 repeater.PageIndex = pager.PageIndex; 42 } 43 } 44 45 private void BindPagingInfo() 46 { 47 if (repeater != null && repeater.Entities != null && repeater.Entities.Records != null) 48 { 49 if (pager != null) 50 { 51 pager.TotalRecords = repeater.Entities.TotalRecords; 52 pager.PageSize = repeater.DisplayItemCount; 53 } 54 } 55 } 56 } 57} 58
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:SpaceBuilder v1.1源代码

- SOCUT投票系统.Net开源版 v1.0

- Asp.net客户管理系统源码

- 仿Google查询并导出Excel源码

- iBatisNet入门示例源码(操作..

- Anthem.NET中FileUpload控件..

- IP锁定程序实例源码

- 多功能文本框控件源码及示例

- 青岛分类信息网源码

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号