开发者

Binding xml to an ASP.NET treeview. How do I get the specific nodes?

I see that the data is there when I autogenerate. I can't seem to understand how to get the values from the nodes? Any reference anywhere on the ways to set the properties of databandings/TreeNodeBinding?

Like I need the name inside here

  <TaxonomyName>Resource Enhancement</TaxonomyName>

Using

   <asp:TreeView ID="tvSubmissionCategories" runat="server" DataSourceID="xdsSubmissionCategories"
                AutoGenerateDataBindings="False">
                <DataBi开发者_如何转开发ndings>                  
                    <asp:TreeNodeBinding DataMember="Taxonomy" Text="TextThing" />
                </DataBindings>
            </asp:TreeView>


In the TreeNodeDataBound event it can be accessed with e.Node.PropertyName.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜