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)