Reading a file from within an whatever.aspx.cs

Z

Zach

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.
 
Z

Zach

Zach said:
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.
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
 
A

Arne Vajhøj

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.

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top