id="TreeView1"
DataSourceID="srcDiscuss"
OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"
ImageSet="News"
Runat="server">
TextField="Subject"
ValueField="MessageId" />
id="srcDiscuss"
ConnectionString='<%$ ConnectionStrings:Discuss %>'
DataKeyName="MessageId"
DataParentKeyName="ParentId"
SelectCommand="SELECT MessageId,ParentId,Subject FROM Discuss"
Runat="server" />
You selected message number:
id="lblSelected"
Runat="server" />