Click here to Skip to main content
11,929,166 members (63,144 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET
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 15-Feb-13 0:38am
Edited 19-Feb-13 19: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 | Mobile
Web01 | 2.8.151126.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2015
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