将代码块嵌入<asp:treeview>块</asp:treeview>

时间:2014-08-29 15:02:42

标签: c# asp.net sharepoint

我正在尝试这样做:

<asp:TreeView id="LinksTreeView"
    Font-Names= "Arial"
    ForeColor="Blue"
    EnableClientScript="true"
    PopulateNodesFromClient="true"  
    OnTreeNodePopulate="PopulateNode"
runat="server">
    <Nodes>
        <asp:TreeNode Text="Logista" 
        SelectAction="Expand"  
        PopulateOnDemand="true"
        Value="<% SPContext.Current.Web.Url %>"/>

    </Nodes>
</asp:TreeView>

但是Visual Studio告诉我在这种情况下不支持代码块。有没有办法做我想做的事?

谢谢!

0 个答案:

没有答案