473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Display File on an asp.net Page

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
5 1968
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
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
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
> 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Mat | last post by:
<div id="container"> <div id="main"> <div id="header"> <p class="Address">123 Fake Street, </p> <p class="City">Crazy City, </p> <p class="Province">Ontario </p> <p class="PostalCode">H0H...
5
by: David Elliott | last post by:
I need a control on a Web Page that can accept an HTML Document and will display it. Any help would be appreciated. Thanks, Dave Here is what I was trying...
7
by: TLM | last post by:
I am trying to build a web application that will contain links to files on a users local computer. I am assuming that the files will be in a known location and can display in a browser window. ...
18
by: Terry Holland | last post by:
I have an asp.net (1.1) application that connects to a SQL server 2000 db. I have a stored procedure in my db that out puts data in xml format. What I need to be able to do is display that xml...
3
by: c676228 | last post by:
Hi everyone, I have a piece of code in sales.aspx.vb like this: Protected WithEvents Message As System.Web.UI.WebControls.Label Try ... ChartImage.ImageUrl = "ChartGenerator.aspx?" + DataStr +...
11
by: nickyeng | last post by:
I have a html file contains a form asking user to select a choice and press enter to pass the data to server. In server there, i have a cgi script(C language) that accepts the input from browser...
1
by: amritranjan | last post by:
How to retrive image file from MS access database and display this in another JSPpage -------------------------------------------------------------------------------- This is my Jsp code for...
9
by: tomhawkins1 | last post by:
Hi I currently have a site where users can upload files. These files can be doc, wmv, jpeg, xls, dwf, dwf and dwg. These files are uploaded to /home/**user**/uploads and not /home/...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net app, in the page there is a scan activex which could scan and save a jpg file in client harddisk. How could we access and display this jpg file on the fly using js in the client...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.