XPath If statement

G

Guest

Hi,

I want to use an XPath expression in a GridView ItemTemplate, where
I wish to check for a particular value of an attribute in one of the elements
in my Xml source.

ex:

<Comments>
<Comment author="Joe Doe" private="True">This is a private</Comment>
<Comment author="John Smith" private="False" />Not private</Comment>
</Comments>

How would I use XPath to determine if private is True and then not show that
row in the Grid?

Thanks in advance.
 

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,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top