473,385 Members | 1,927 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,385 software developers and data experts.

Displaying thumbnails

I have progressed in my learning experience to where I have uploaded [.jpg]
files to a particular directory. I now want to display those images as
thumbnails of 170px by 170px with up to four in a row with a 170px wide
textbox under each image. If there are six images, then there would be two
rows. The first would have four and the second would have two.

I can easily do this if I know beforehand how many total images there will
always be, and then program the display statically for that number.
However, I would like the display aspect to be dynamic with respect to the
total number of images. (I can get that from a count in the directory).

So, how do I get started in this process?

--
Shelly
Sep 10 '07 #1
2 1258
Look at the DataList class. It allows databinding with placing several items
in a row. And you can make an itemtemplate with an image and a textbox.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Shelly" <sh************@asap-consult.comwrote in message
news:13*************@corp.supernews.com...
>I have progressed in my learning experience to where I have uploaded [.jpg]
files to a particular directory. I now want to display those images as
thumbnails of 170px by 170px with up to four in a row with a 170px wide
textbox under each image. If there are six images, then there would be two
rows. The first would have four and the second would have two.

I can easily do this if I know beforehand how many total images there will
always be, and then program the display statically for that number.
However, I would like the display aspect to be dynamic with respect to the
total number of images. (I can get that from a count in the directory).

So, how do I get started in this process?

--
Shelly

Sep 10 '07 #2

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OK**************@TK2MSFTNGP03.phx.gbl...
Look at the DataList class. It allows databinding with placing several
items in a row. And you can make an itemtemplate with an image and a
textbox.
Thanks. I'll start there.

--
Shelly
>
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Shelly" <sh************@asap-consult.comwrote in message
news:13*************@corp.supernews.com...
>>I have progressed in my learning experience to where I have uploaded
[.jpg] files to a particular directory. I now want to display those
images as thumbnails of 170px by 170px with up to four in a row with a
170px wide textbox under each image. If there are six images, then there
would be two rows. The first would have four and the second would have
two.

I can easily do this if I know beforehand how many total images there
will always be, and then program the display statically for that number.
However, I would like the display aspect to be dynamic with respect to
the total number of images. (I can get that from a count in the
directory).

So, how do I get started in this process?

--
Shelly


Sep 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Gregory | last post by:
Hello, I've managed to build two web pages, one that can display images with associated text data in a table, and one that can resize and display images without the text. I'd like to resize the...
1
by: Robbie | last post by:
On this page http://fire.prohosting.com/auxxx/Mammoth/pic.html there is a simple script which stores thumbnails of pictures in a dropdown menu thing. In IE the when you open the menus the...
11
by: Ian Davies | last post by:
Hello Im having problems displaying my images as thumbnails in a table. My code for producing the new width and height from the original image is as follows...
3
by: Lyn | last post by:
I need some guidance for a technique that will allow me to accomplish the following... I have a table in which each record contains a photograph. I would like to display in a form a thumbnail...
0
by: Kenneth Keeley | last post by:
Hi I wish to be able to display a web page that contians Thumbnails of PDF files with links to the matching PDF file. We have a script that uploads new pdf files to or web site daily and I would...
2
by: johnb41 | last post by:
In my app, I need to open up a multipage tiff file, and also display it's thumbnail images IN HIGH QUALITY. (High Quality meaning anti-aliased, and looking good; not rough and pixely) The...
1
by: David Lozzi | last post by:
Hello, I'm wondering whats the best method to use for displaying several photos' thumbnails. One method I know is to dynamically resize the photo at the time the page is loaded. What does this...
5
by: ljuljacka | last post by:
I'm trying to display resized images. Locations of images are fetched from database. The problem is that with the following code, I get only the first image displayed: <?php...
4
by: Blue10 | last post by:
Hi, I would like to be able to display thumbnail versions of the full images on my website. Currently I have to make the thumbnails manually so I wonder if there is any way of displaying reduced...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.