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.
"Daniel Fisher(lennybacon)" wrote:
Response.WriteFile(path);
--
Daniel Fisher(lennybacon)
MCP ASP.NET C#
Blog: http://www.lennybacon.com/
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com... This is helpful. Thanks. Is there any way to read the file another drive?
Not
under wwwroot.
"Daniel Fisher(lennybacon)" wrote:
Send the file to the browser.
Response.Redirect(http://www.example.org/myfile.xls);
--
Daniel Fisher(lennybacon)
MCP ASP.NET C#
Blog: http://www.lennybacon.com/
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
> 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.
>