[web用户空件的属性]Web用户空件的属性中自定义属性的设置和使用

更新时间:2014-07-21    来源:安卓教程    手机版     字体:

【www.bbyears.com--安卓教程】

 
public class Bull : System.Web.UI.UserControl
{
 private string _strID;// 自定义属性值  MID
 public string IMID
 {
    get
    {
     return _strID;
    }
    set
    {
     _strID=value;
    }
 }
 private string _strPageSize;//自定义属性 显示个数
 public string IPageSize
 {
    get
    {
     return _strPageSize;
    }
    set
    {
     _strPageSize=value;
    }
 }
 public string _strLineTitle;//行头
 public string ILineTitle
 {
    get
    {
     return _strLineTitle;
    }
    set
    {
     _strLineTitle=value;
    }
 }
 public string IForeColor
 {
    set
    {
     DLTNews.AlternatingItemStyle.ForeColor=Color.FromName(value);
    }
 }
 public string IBackColor
 {
    set
    {
     DLTNews.AlternatingItemStyle.BackColor=Color.FromName(value);
    }
 }
 protected System.Web.UI.WebControls.DataList DLTNews;
 private void Page_Load(object sender, System.EventArgs e)
 {
    if(!Page.IsPostBack)

本文来源:http://www.bbyears.com/shoujikaifa/7964.html

猜你感兴趣

热门标签

更多>>

本类排行