帮忙看看,这是自定义控件,后缀名是ascx.cs里的代码.
那位仁兄解释这代码的意思啊
/// 设置或获取菜单链接
/// </summary>
[PersistenceMode(PersistenceMode.InnerProperty),
TemplateContainer(typeof(System.Web.UI.HtmlControls.HtmlImage))]
public HtmlImage IconTemplate
{
set
{
this.m_iconTemplate=value;
}
get
{
return this.m_iconTemplate;
}
}
/// <summary>
/// 设置或获取菜单链接
/// </summary>
[PersistenceMode(PersistenceMode.InnerProperty),
TemplateContainer(typeof(System.Web.UI.HtmlControls.HtmlAnchor))]
public HtmlAnchor AnchorTemplate
{
set
{
this.m_anchorTemplate=value;
}
get
{
return this.m_anchorTemplate;
}
}
这是设置自定义控件的属性吗?
------解决方案--------------------是的