More in this section
Forums / Developing with Sitefinity / Accessing local XML from custom user control

Accessing local XML from custom user control

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Tyler
    Tyler avatar
    2 posts
    Registered:
    20 Jun 2016
    20 Jun 2016
    Link to this post

    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.

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    06 Sep 2017
    23 Jun 2016
    Link to this post
    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
     
  3. Tyler
    Tyler avatar
    2 posts
    Registered:
    20 Jun 2016
    23 Jun 2016 in reply to Svetoslav Manchev
    Link to this post

    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

3 posts, 0 answered