Q: open excel in asp.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
How can I open an excel file in asp.net. I have a dropdown list that keeps
excel file names and when user click view button I need to open file selected
with excel. How should I do this?
Thanks,
Jim.
 
This is helpful. Thanks. Is there any way to read the file another drive? Not
under wwwroot.
 
Thanks but I could not get Response.WriteFile(path) working. It shows lost of
garbage, not excel sheet. I also have this question: If path has D:\ drive in
it and users run web application in their local computer, does it bring excel
file in D:\ drive in the server, or it will look D:\ driver on the local
computer. If local computer, it will not work for me because users should
read the file in the server's D:\ drive.
 
Back
Top