treeview, databinding event

Nov 24, 2009 at 8:26 AM

For a CMS, I use the treeview control (with CSS friendly adapter) binded with the sitemap :

  <asp:TreeView DataSourceID="SiteMapDataSource1" ID="EntertainmentTreeView" runat="server" OnSelectedNodeChanged="OnClick" OnAdaptedSelectedNodeChanged="OnClick" >
   <DataBindings>
    <asp:TreeNodeBinding DataMember="SiteMapNode" TextField="Title" ValueField="url" />
   </DataBindings>
  </asp:TreeView>

    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />

But when I click on a node, the treeview does not respond, doesn't send event. If I replace the ValueField "url" by for example "title", the event is ok.

How can I force the treeview to send Event with ValueField="url" ?

I have published a small project to show the problem at http://www.almageste.info/preuve.zip.

The problem is caused by the simultaneous use of Databinding and CSS Friendly...

Thanks for you help !