📄 pagebase.cs
字号:
/********************************************************************************
** 作者:高亮
** 创始时间: 2007-12-22
** 描述:
** 主要用于后台管理员添加商品,…
** 表:
*********************************************************************************/
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// Base class for all pages in the application.
/// </summary>
public class PageBase : Page
{
/// <summary>
/// Override the Page.StyleSheetTheme property to use the current user's profile.
/// </summary>
/// <remarks>The reason for using the <see cref="Page.StyleSheetTheme" /> property instead of
/// <see cref="Page.Theme" /> is the resulting output:
/// StyleSheetTheme CSS files get output at the very beginning of the <head> element in the source,
/// whereas Theme CSS files get output at the end. We're using IE-specific conditional comments in the
/// masterpage that *must* be interpreted after the main style sheet, so we have to output the link to the
/// main style sheet as early as possible.</remarks>
public override string StyleSheetTheme
{
get
{
return HttpContext.Current.Profile["StylesheetTheme"].ToString();
}
set
{
HttpContext.Current.Profile["StylesheetTheme"] = value;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -