Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to show the doc/pdf/txt/ppt/xls file on asp.net page that was uploaded by admin
i used iframe for this but not working its start downloading
like please someone tell me how to display a document file on asp.net page

C#
<iframe src="<%#Eval("path")%>" scrolling="no"></iframe>


can someone tell me an idea to show such kind of file in asp.net using c#
and how to play video ...i am trying like

C#
<iframe src="<%#Eval("videopath")%>" scrolling="no"></iframe>


but not working
Posted
Updated 19-Feb-13 18:58pm
v7

You can't just show any kind of file in a browser window on the client.
The client's browser setup will define how attachments are opened and you have no control over this.
By default .doc and .docx will open with Word, pdf with reader(either browser add-in or stand-alone), etc...
 
Share this answer
 
Comments
Miss Maheshwari 18-Feb-13 6:13am    
but if a member upload his/her resume than s/he can see like we all do in naukri.com
use hyperlink and _Target=blank redirect page to Your path on hyperlink click by using navigate url....
 
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