webpartbase.cs
来自「asp.net 2.0 WebPart应用. 使用Web部件创建模块化的Web」· CS 代码 · 共 59 行
CS
59 行
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
public class WebPartBase : UserControl, IWebPart
{
protected string _title = "[Generic Title]";
public string Title
{
get { return _title; }
set { _title = value; }
}
// Subtitle
protected string _subTitle = "";
public string Subtitle
{
get { return _subTitle; }
set { _subTitle = value; }
}
// Caption
protected string _caption = "[Generic Caption]";
public string Caption
{
get { return _caption; }
set { _caption = value; }
}
// Description
private string _description = "[Generic Description]";
public string Description
{
get { return _description; }
set { _description = value; }
}
// TitleUrl
private string _titleUrl = "http://msdn.microsoft.com/msdnmag";
public string TitleUrl
{
get { return _titleUrl; }
set { _titleUrl = value; }
}
// TitleIconImageUrl
private string _titleIconImageUrl = "img/star.GIF";
public string TitleIconImageUrl
{
get { return _titleIconImageUrl; }
set { _titleIconImageUrl = value; }
}
// CatalogIconImageUrl
private string _catalogIconImageUrl = "img/star.gif";
public string CatalogIconImageUrl
{
get { return _catalogIconImageUrl; }
set { _catalogIconImageUrl = value; }
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?