locked
Dynamically populate Server.MapPath with XML file name by Directory selection RRS feed

  • Question

  • User-498848506 posted

    I have created an application that accepts an ADOBE form submission and creates a uniquely named xml file for each submission to a directory on the server, e.g.

    TestFile1.xml,
    TestFile2.xml,
    TestFile3.xml...

    I have also created an ASPX page (VB.Net) that will open and display XML data in a formatted page to allow user review before updating the database.

    Using the following - doc.Load(Server.MapPath(
    "TestFile1.xml")) currently however, the Code Behind Page Load looks for a specific file "TestFile1.xml"

    What I would like to do is enable the user to locate the appropriate file (perhaps by Directory search) for either... Test File1, 2 OR 3 to and the selection dynamically populate the MapPath so the appropriate data file will open in the page...

    I hope that what I am trying to accomplish is clear... and I would appreciate any and all suggestions or code examples for how to handle this situation. If this is not the correct forum for a question of this type, please advise.

    Thanks!!<o:p></o:p>

    Friday, May 24, 2013 8:15 AM

Answers