问个关于模板的问题
我做了个模板,用到了CSS样式.在再样式下面声明控件,但是我在模板类中引用该控件的时候,说不存在.可是我
像.this.label他是能出来的.
如下:
定义:
<div id="navigation">
<div id="navigationContent">
<asp:TreeView ID="TreeView1" runat="server"
DataSourceID="SiteMapDataSource1"
ShowExpandCollapse="False" SkipLinkText="" Height="248px" Width="88px" >
<NodeStyle CssClass="nav" />
</asp:TreeView>
</div>
</div>
声明:
如下:this.TreeView1,明明写this后就回出来TreeView1


