+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Accessing local XML from custom user control

Accessing local XML from custom user control

3 posts, 0 answered
  1. Tyler
    Tyler avatar
    2 posts
    Registered:
    20 Jun 2016
    20 Jun
    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:
    29 Nov 2016
    23 Jun
    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 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