Display File on an asp.net Page

G

Guest

Does somebody knows, if theres a way to display any file (tiff, doc, pdf,
.....) "inline" on an asp.net site? What I want to do is, to display a file,
which is stored in the DB, and some information around it.

If you know a way, or a third party control, please let me know.

tia
Martin
 
B

Brock Allen

What do you mean inline? Images are shown in HTML pages via <img> tags with
a src="SomeImage.gif" attribute. This means there's a second request to the
server to fetch the data for the image.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
G

Guest

What I want to do is, the same as the <img> tag does, but for any Filetype
(like PDF, Word, ...). The final result should be a page, which contains
textboxes, labels, ..., and one file (stored in the DB) displayed on this
page like an image.

This page should be part of a document management system.
 
B

Brock Allen

Then you're going to need frames for the sub-item if it's an image. My concen
is when you want it to load word files, or PDF files. Usually the browser
passes the downloaded filt to the OS to open, and then you end up with the
external application launched. This is, of course, all up to the user's settings.
So, in short, I'm not sure you can do exactly what you're looking for.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
K

Kevin Spencer

textboxes, labels, ..., and one file (stored in the DB) displayed on this
page like an image.

This staement is confusing. Do you mean an icon? the only way to display
"any FileType" "like an Image" is using an icon, which doesn't display the
file, but displays a symbol that represents the file. On the other hand, if
you want to display a "screen shot" of the file as it would look when opened
in an application that can display that type of file, for ANY file type,
that would not be possible. For example, what would a DLL look like? Or an
exectuable ("exe")?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
G

Guest

I want to display the file itself, not an icon. Only files which have
presentable data should be display. I know that this is complicate, but I
found Controls which do this for WinForms, so maybe someone coded something
similar for ASP.NET.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top