weblogbasetemplatedwebcontrol.cs

来自「本系统是在asp版《在线文件管理器》的基础上设计制作」· CS 代码 · 共 67 行

CS
67
字号
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;using CommunityServer.Blogs.Components;using CommunityServer.Components;using CommunityServer.Controls;namespace CommunityServer.Blogs.Controls
{
    /// <summary>
    /// Summary description for WeblogTemplatedForumWebControl.
    /// </summary>
    public abstract class WeblogBaseTemplatedWebControl : TemplatedWebControl
    {
        public WeblogBaseTemplatedWebControl():base()
        {
			  _currentUser = CSContext.Current.User;
        }

        /// <summary>
        /// No Being Span
        /// </summary>
        /// <param name="writer"></param>
        public override void RenderBeginTag(System.Web.UI.HtmlTextWriter writer)
        {
            //we don't need a span tag
        }

        /// <summary>
        /// No End Span
        /// </summary>
        /// <param name="writer"></param>
        public override void RenderEndTag(System.Web.UI.HtmlTextWriter writer)
        {
            //we don't need a span tag
        }

        private User _currentUser = null;

        /// <summary>
        /// The Current User Accessing the blog/data
        /// </summary>
        protected User CurrentUser
        {
            get{return _currentUser;}
        } 



        /// <summary>
        /// Set Blogs as the directory for all Blog Controls
        /// </summary>
        protected override String ExternalSkinFileName
        {
            get
            {
                return CreateExternalSkinFileName("Blogs");
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?