I want to check the xml before displaying it. I am using XPath, not xsl for it. E.g.
<title></title> <url></url> <submit></submit>
I want to check if XML data is not there. Then do not display it. because I put these values โโin <a href=<%#container.dataitem,url%>>new link</a>. Therefore, I want that if the url is empty, do not display the new link, otherwise display it and similarly for the title, if the title is not empty, otherwise it does not display it.
The main problem: I can check how in the ascx.cs file if(iterator.current.value="") not to display it, but the problem is in the ascx file i m givin
<a href="">new link</a>
I want the new link not to appear if the url is empty ... Any idea how to check this condition?
source share