Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
now i working on a project that is used for document sharing ,so the clients can view documents without download it. but can do this in ASP.NET visual basic 2010 any one???
Posted
Comments
Marc Gabrie 31-Jul-13 13:18pm    
what kind of documents are those? doc? xls? pdf?

1 solution

If you are to view a document in the browser it will be downloaded, you can't get around that.

If you have stored the path to your document in SQL then you can simply use Response.Redirect(pathtofile) and that will allow the user to download the document.

Or, if it is stored in SQL in a binary format you can use the Response object to send it to the client. There are lots of samples online.
 
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