Asp.net源码专业站
首页->博客空间->SpaceBuilder v1.0正式版源码>>BasicWebControls/Manage/BaseControls/ForumBaseControl.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:SpaceBuilder v1.0正式版源码
当前文件:文件类型 SpaceBuiderV10Source/BasicWebControls/Manage/BaseControls/ForumBaseControl.cs[1K,2009-6-12 11:55:07]打开代码结构图
普通视图
		            
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 SpaceBuilder.Components; 11using SpaceBuilder.Posts.Permissions; 12using TunyNet.Utils; 13using SpaceBuilder.Configuration; 14using SpaceBuilder.Controls; 15using System.Web.UI; 16 17namespace SpaceBuilder.Web.Manage.Controls 18{ 19 public abstract class ForumBaseControl : ManageBaseControl 20 { 21 protected override void Authorize() 22 { 23 if (!(SBContext.Current.User.IsForumAdministrator)) 24 PermissionBase.RedirectOrExcpetion(SBExceptionType.AccessDenied); 25 } 26 27 /// <summary> 28 /// 设置页面Title 29 /// </summary> 30 protected override void SetPageTitle(string text) 31 { 32 if (ValueHelper.IsNullOrEmpty(text)) 33 Header.AddTitle(string.Format("{0}{1}{2}", "论坛管理", SBContext.Current.BrowserTitleSeparator, SBContext.Current.SiteName + "后台管理"), Context); 34 else 35 Header.AddTitle(string.Format("{0}{1}论坛管理{1}{2}", text, SBContext.Current.BrowserTitleSeparator, SBContext.Current.SiteName + "后台管理"), Context); 36 } 37 38 } 39} 40
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:SpaceBuilder v1.0正式版源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146