Open Excel file in browser using .Net

  • Thread starter Thread starter dele.olowoyo
  • Start date Start date
D

dele.olowoyo

Hey All,

I am trying to open an Excel file in a browser by using
Response.Redirect. The file is located in a virtual directory.
However, the browser title shows the path of the file, which I don't
want anyone to see. I was wondering, can I do the same thing using
Server.Tranfer, and if so, would it keep the browser title from showing
the location of the file since it doesn't make a round trip to the
server and all.

Or if you know any other ways to open up an excel file directly, please
let me know. Thanks.
 
I havent done this before, but you could build a "wrapper" page. You
send the users to somePage.aspx?file=myfile.xls, then in the page, set
whatever title you want and load the excel file into a frame or
something. That way you have control over the page level elements.

Sorry I dont have examples, I havent tried this before.
 

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

Back
Top