Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I have a page that allow users to upload csv and the uploaded files will be displayed in a list. I need users to be able to click on the uploaded CSV filename from the list and display the contents of the csv in a new window.

Question: how do i post/get the filename of the csv and then display the content of the CSV out in a new window?

Many thanks...
Posted

1 solution

One easy way is to just hyperlink to the file. They'll click on it and depending on their system settings they will likely get a prompt to save or download the file.

If you want to read in the file then use the System.File class, read in the values from the CSV and put the text into a textbox on a web page.

See http://msdn.microsoft.com/en-us/library/system.io.file(v=vs.110).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900