Click here to Skip to main content
13,145,608 members (37,224 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i am trying to show the doc/pdf/txt/ppt/xls file on 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 page

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

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

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

but not working
Posted 14-Feb-13 23:38pm
Updated 19-Feb-13 18:58pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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...
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
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

use hyperlink and _Target=blank redirect page to Your path on hyperlink click by using navigate url....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100