Hello every body
How could i view a file from the server. I mean open it without download it.
what ever your reply thx alot.
Abudair..
Printable View
Hello every body
How could i view a file from the server. I mean open it without download it.
what ever your reply thx alot.
Abudair..
You can not do such a thing, since the client will no longer be connected to the server after the html is rendered.
You can do this:
http://support.microsoft.com/defaul...kb;en-us;303475
NOTE: It affects all files with the extension that you want to open directly, from any server.
IT bacsically depends upon what file you would like to send to the browser.
If its any office document, IE might open automatillay in the browser , and the
applies only in case if you require the IE to open file download dialog instead of showing the file in the same window.Code:http://support.microsoft.com/default.aspx?scid=kb;en-us;303475
Assuming that the file that you want to open is within the same asp.net application
you can use the following. where strFileURL is the file path of the file you want to display.
Hope it worked.Code:Response.WriteFile(Server.MapPath(strFileURL))
Thanks