none
谁帮偶解释下面的语句提出的问题,谢谢。datamember,textfield,navigateUrlfield等在下面是啥意思? RRS feed

  • 问题

  • aspx文件
    <asp:TreeView ID="TreeView1" runat="server" DataSourceID="XmlDataSource1" ImageSet="Faq" style="left: -16px; position: relative; top: 3px">
                        <DataBindings>
                            <asp:TreeNodeBinding DataMember="Hardware" Text="text管理系统功能区" Value="value管理系统功能区"></asp:TreeNodeBinding> <%--这里的datamember,text,value 和下面的textfield,datamember是啥意思?--%>
                            <asp:TreeNodeBinding TextField="Category" DataMember="Item"></asp:TreeNodeBinding>
                            <asp:TreeNodeBinding TextField="Choice" DataMember="Option" NavigateUrlField="Url"></asp:TreeNodeBinding>
                            <asp:TreeNodeBinding DataMember="leaf" NavigateUrlField="Url" TextField="son" />
                        </DataBindings>
                        <ParentNodeStyle Font-Bold="False" />
                        <HoverNodeStyle Font-Underline="True" ForeColor="Purple" />
                        <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" />
                        <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="DarkBlue" HorizontalPadding="5px"
                            NodeSpacing="0px" VerticalPadding="0px" />
                    </asp:TreeView>


    xml文件
    <?xml version="1.0" encoding="utf-8"?>
    <Hardware>
     <Item Category="企业管理">
      <Option Choice="公司简介" Url="~/PublicPage.aspx"/>
        <Option Choice="规章制度" Url=""/>
        <Option Choice="员工管理"  Url=""/>
      </Item>
     <Item Category="业务管理">
      <Option Choice="最新动态"  Url="">
          <leaf son="旅行排行" Url=""/>
          <leaf son="意见专区" Url=""/>
       </Option>
     </Item>
      <Item Category="资源管理">
        <Option Choice="名地简介"  Url=""/>
        <Option Choice="名山绿水"  Url=""/>
        <Option Choice="旅行资源" Url="">
          <leaf son="图片资源" Url=""/>
          <leaf son="名山简介" Url=""/>
        </Option>
      </Item>
    </Hardware>

    maiyude
    2010年3月5日 8:57

答案