Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

Reference a different attribute

$
0
0

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


Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>