473,320 Members | 2,080 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,320 software developers and data experts.

Repost: variable number of pictures to be shown

I want to display an array of pictures and I don't know beforehand how many
there are in the array. I want there to be up to four pictures in a row
(all the same size, of course), aligned to the left. When the fifth picture
appears, it would start the next row.

Someone suggested the datagrid control, but I don't see how to use that one
here. I am asking how to code the visual aspect of the page so that it will
handle the variable number in the manner I want. As far as specifying the
source of the pictures, I can do that in the Page_Load.

I know this is aspx and vb, but the way I did it in php was to created a
string (in php) containing all the html when I was loading the page, and in
the appropriate place in the html <body I merely echoed (wrote) that
string. How do I do it here?

--
Shelly
Sep 11 '07 #1
3 1335
"Shelly" <sh************@asap-consult.comwrote in message
news:13*************@corp.supernews.com...
How do I do it here?
The asp:Repeater webcontrol is perfectly suited to this - just specify the
number of columns as 4:
http://www.google.co.uk/search?sourc...peater+columns
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 11 '07 #2

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eh**************@TK2MSFTNGP06.phx.gbl...
"Shelly" <sh************@asap-consult.comwrote in message
news:13*************@corp.supernews.com...
>How do I do it here?

The asp:Repeater webcontrol is perfectly suited to this - just specify the
number of columns as 4:
http://www.google.co.uk/search?sourc...peater+columns
I didn't find column in the properties list.
Sep 11 '07 #3
"Shelly" <sh************@asap-consult.comwrote in message
news:13*************@corp.supernews.com...
I didn't find column in the properties list.
In fact, a DataList would be even simpler than a Repeater - just set the
RepeatDirection and RepeatColumns properties, and you're good to go...
http://samples.gotdotnet.com/quickst..._datalist.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 11 '07 #4

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

Similar topics

4
by: JaNE | last post by:
as 1st, sorry on my clumsy english (now I realy miss some words) I have one language specific problem with my site. I would like to tell how meny pictures someone have in his or her gallery and I...
6
by: Nutshell | last post by:
Hi, I created a web page which contains table. I use table cells to display a picture using <img src>. The problem is that some pictures are not being fully displayed, only a quarter of the left...
8
by: drillbit_99 | last post by:
I have an HTML page of thumbnail images. Each image can begin a slideshow of the images on the page by clicking on the image. This opens another HTML page that begins the slideshow using large...
1
by: Steve Wathen | last post by:
I need to create a database where each record is an invoice originally stored as a csv file. Currently these csv files are loaded in excel to display them. Each invoice has a variable number of...
14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
3
by: TheNedMan | last post by:
Sorry for the repost, but I want to get to the bottom of this... From the Microsoft sample "How-To Create an Offline Application": Public Delegate Sub CustomersRowChangeEventHandler(ByVal...
1
by: Coogrr | last post by:
I am writing a set of macros to use in PowerPoint. One of the macros asks the user to input a prefix. the code is shown below: Sub Prefix() ActiveWindow.View.GotoSlide...
4
by: Kaur | last post by:
I am reposting this message. I am a beginner using MS Access. I am working in MS Access 2000 and have created two forms. Form 1 is called frmParent (which has a read only subform called SfrmChild)....
5
by: OK | last post by:
I am using an image control to display some images within a virtual map (ImagesRoot in IIS) outside of the web root in my vb asp.net application. How should I code the imageurl property to have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.