I have a XML file for users to click a link to display a help pdf. The XML is using Node Text = Course and I can use Text to display the PDF in an iframe. The XML has attributes of PDFFile and Permissions, also.
A part of the xml file:
<Node Text="System Software Requirements" PDFName="SystemSoftware" Permissions="Administrator,Installer">
<Node Text="Client PC System Software" PDFName="SystemSoftwareClientPC" Permissions="Administrator,Installer"/>
<Node Text="Server System Software" PDFName="SystemSoftwareServer" Permissions="Administrator,Installer"/>
</Node>
In the C# code behind, I am using Telerik.Web.UI.RadTreeNodeEventArgs e
string PDFName = e.Node.Text
to display the pdf file
I would like to use PDFName to display the PDF file and remove the link if the person is not an Administrator or Installer. I have tried selectedName.Attribute("PDFName"), but it is giving me an error. What attribute should I use?
Thanks,
Jeff