Accessing local XML from custom user control

Posted by Community Admin on 04-Aug-2018 19:25

Accessing local XML from custom user control

All Replies

Posted by Community Admin on 20-Jun-2016 00:00

Hello,

Is there a way to access an XML file within my sitefinity webapp project files in the backend code for a custom user control?  The site is developed with vb.net.

Thank you.

Posted by Community Admin on 23-Jun-2016 00:00
Hello Tyler,

Sitefinity is a standard .Net application, so you can use the same approach as in other application. You can check that article for more information:
https://support.microsoft.com/en-us/kb/301225

Regards,
Svetoslav Manchev
Telerik
 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 
Posted by Community Admin on 23-Jun-2016 00:00

Hi Svetoslav,

Thanks for the response.  If I need the xml file within my local project files (ie. cannot access the outside internet to retrieve the xml file), where in my project folder structure do I place the xml file?  How do I access the xml file in the codebehind?

The closest I can find is the sf:resourceLinks for accessing javascript or CSS files.  But this is in the aspx html code and not the vb.net codebehind.

Thanks,

Tyler

This thread is closed