Reading a file from within an whatever.aspx.cs

Discussion in 'ASP .Net' started by Zach, May 20, 2012.

  1. Zach

    Zach Guest

    How do I address a file to read from an *.aspx.cs?

    Simply coding "whatever.txt" isn't doing the trick.
    The "whatever.txt" is in with the rest of the classes and stuff costituting
    the one project.

    Zach, May 20, 2012
    1. Advertisements

  2. Zach

    Zach Guest

    For the sake of clarity, I know how to read from a text file,
    I don't know how to name the source from which to read.
    Zach, May 20, 2012
    1. Advertisements

  3. Zach

    Arne Vajhøj Guest

    You get the file name from either query parameter or
    form field in the request.

    If you return the file for download you can suggest a
    filename to the browser on a HTTP header.

    Arne Vajhøj, May 20, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.