How can I bind a XMLDataSource to a Label control in code Behind?
I have added a XMLDataSource pointing to my XML file and filtered the data by XPath. Then I bind it to a Form View. I use <%# XPath("tag") %> in .aspx file to show the data in form view. My requirement is to access some of the tags that are not displayed/used in .aspx page but need to be used in code behind. I don't know how to bind XMLDataSource to a label control in the code behind file. Please help.
View Complete Post