By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,257 Members | 928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,257 IT Pros & Developers. It's quick & easy.

Display File on an asp.net Page

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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
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


Nov 19 '05 #2

P: n/a
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.

"Brock Allen" wrote:
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
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


Nov 19 '05 #3

P: n/a
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
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.

"Brock Allen" wrote:
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
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


Nov 19 '05 #4

P: n/a
> 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.

"Martin Moser" <Martin Mo***@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com... 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.

"Brock Allen" wrote:
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
> 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


Nov 19 '05 #5

P: n/a
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.

"Kevin Spencer" wrote:
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.

"Martin Moser" <Martin Mo***@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
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.

"Brock Allen" wrote:
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

> 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


Nov 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.