A
abargaddon
Hi all,
I am developing a hierarchical, templated control in order to show
hierarchical data in a more flexible way than with TreeView.
Databinding and retrieving works well in plmain text inside the
templates. However, it does not work in fields.
Example :
<gug:RecursiveULMenu ...>
<ItemTemplate>
Name=<%# Eval("Name") %>, Text=<%# Eval("Text") %>
<asp:HyperLink ID="HyperLink1" runat="server"
Text='link <%# Eval("Name") %>' />
<asp:Label ID="Label1" runat="server"
Text='label <%# Eval("Name") %>' />
<%#Eval("Name")%>
</ItemTemplate>
</gug:RecursiveULMenu>
Outcome :
The 2 first Eval() work. The 2 in HyperLink and Label don't work. The
last one works.
Can any one tell me what in my control does make that strange behavior ?
Regards,
Abargaddon
I am developing a hierarchical, templated control in order to show
hierarchical data in a more flexible way than with TreeView.
Databinding and retrieving works well in plmain text inside the
templates. However, it does not work in fields.
Example :
<gug:RecursiveULMenu ...>
<ItemTemplate>
Name=<%# Eval("Name") %>, Text=<%# Eval("Text") %>
<asp:HyperLink ID="HyperLink1" runat="server"
Text='link <%# Eval("Name") %>' />
<asp:Label ID="Label1" runat="server"
Text='label <%# Eval("Name") %>' />
<%#Eval("Name")%>
</ItemTemplate>
</gug:RecursiveULMenu>
Outcome :
The 2 first Eval() work. The 2 in HyperLink and Label don't work. The
last one works.
Can any one tell me what in my control does make that strange behavior ?
Regards,
Abargaddon