isn't it possible to put the icon on each node by putting the code in the .xslt file, something like this ...
<!-- Create TreeNode element //-->
<xsl:element name="TreeNode">
<xsl:attribute name="Text">
<xsl:value-of select="categoryname" />
</xsl:attribute>
<!-- here I'm trying to display the icon for each folder-->
<xsl:attribute name="ImageUrl">
<xsl:value-of select="images/folder.ico" />
</xsl:attribute>
<xsl:attribute name="NodeData">
<xsl:value-of select="categoryid" />
</xsl:attribute>
<!-- Call possible child nodes to get recursive processing //-->
<xsl:choose>
<xsl:when test="./CATEGORIES">
<xsl:call-template name="callabletemplate">
<xsl:with-param name="categories" select="./CATEGORIES" />
</xsl:call-template>
</xsl:when>
</xsl:choose>
</xsl:element>
this doesn't seem to work ... any solutions ???
THIS **WORKS** if I put it in an .aspx file so the path is CORRECT:
TreeView1.Nodes[2].ImageUrl = "images/BIGFOLDR.ICO";
but I want to put the same icon on all the nodes .... thus I do it in the .xslt file !
please reply to
[email protected]
thanx