M
Mario Vázquez
Hi,
Does anybody know how to use the XPath function of TemplateControl like
this?
<asp:XmlDataSource ID="XmlDataSource1" runat="server" XPath="ROOT/query" />
<aspataList ID="dl1" runat="server" DataSourceID="XmlDataSource1">
<ItemTemplate>
<% if #XPath("anything")="something" Then %>
<b>Here whatever</b>
<%Else%>
<b>Here another thing</b>
<%End if %>
</ItemTemplate>
I know that I can only use expresions when using the # simbol but, does this
means that I can't conditionate the rendering of a bounded TemplateControl?
It has to be some solution! or not?
Thanks for any suggestion
Mario Vazquez
Does anybody know how to use the XPath function of TemplateControl like
this?
<asp:XmlDataSource ID="XmlDataSource1" runat="server" XPath="ROOT/query" />
<aspataList ID="dl1" runat="server" DataSourceID="XmlDataSource1">
<ItemTemplate>
<% if #XPath("anything")="something" Then %>
<b>Here whatever</b>
<%Else%>
<b>Here another thing</b>
<%End if %>
</ItemTemplate>
I know that I can only use expresions when using the # simbol but, does this
means that I can't conditionate the rendering of a bounded TemplateControl?
It has to be some solution! or not?
Thanks for any suggestion
Mario Vazquez