Using XmlDataSource with templateControls

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" />
<asp:DataList 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top