473,473 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

the layout of retrieved data

The link for the photos are requested from the server and so the photo
appears on screen. I can produce a long list by using the response.write ***
& "<br>" or whatever. but is it possible to have it start on the next line
after say 5 photos in a line. i.e. where each - is a photo

- - - - -
- - - - -
- - - - -

rather then
- - - - - - - - - - - - - -
or
-
-
-
-
etc.

thanks
Shukie (apologies for the poor ascii pics)
Jul 19 '05 #1
4 1226
Take a look at this example.
http://www.aspfaq.com/show.asp?id=2247

Ray at work

p.s. I like the ASCII photos. They're really nice. :]

"Shukie" <sh****@DELETETHISBITHERETOEMAILMEbtinternet.com > wrote in message
news:bu**********@hercules.btinternet.com...
The link for the photos are requested from the server and so the photo
appears on screen. I can produce a long list by using the response.write *** & "<br>" or whatever. but is it possible to have it start on the next line
after say 5 photos in a line. i.e. where each - is a photo

- - - - -
- - - - -
- - - - -

rather then
- - - - - - - - - - - - - -
or
-
-
-
-
etc.

thanks
Shukie (apologies for the poor ascii pics)

Jul 19 '05 #2
looking at http://www.asp101.com/samples/index.asp page, could i do this:

---------------------------------------------------

<table border="1">
<%
Do While Not rstSimple.EOF
%>
<tr>
<td><%= rstSimple.Fields("filepath").Value %></td>
<td><%= rstSimple.Fields("filepath").Value %></td>
<td><%= rstSimple.Fields("filepath").Value %></td>
<td><%= rstSimple.Fields("filepath").Value %></td>
</tr>
<%
rstSimple.MoveNext
Loop
%>
</table>

-----------------------------------------------------
"Shukie" <sh****@DELETETHISBITHERETOEMAILMEbtinternet.com > wrote in message
news:bu**********@hercules.btinternet.com...
The link for the photos are requested from the server and so the photo
appears on screen. I can produce a long list by using the response.write *** & "<br>" or whatever. but is it possible to have it start on the next line
after say 5 photos in a line. i.e. where each - is a photo

- - - - -
- - - - -
- - - - -

rather then
- - - - - - - - - - - - - -
or
-
-
-
-
etc.

thanks
Shukie (apologies for the poor ascii pics)

Jul 19 '05 #3
This would create four duplicate images per row.

<img1> <img1> <img1> <img1>
<img2> <img2> <img2> <img2>

as opposed to

<img1> <img2> <img3> <img4>
<img5> <img6> <img7> <img8>

Ray at work

"Shukie" <sh****@DELETETHISBITHERETOEMAILMEbtinternet.com > wrote in message
news:bu*********@titan.btinternet.com...
looking at http://www.asp101.com/samples/index.asp page, could i do this:

---------------------------------------------------

<table border="1">
<%
Do While Not rstSimple.EOF
%>
<tr>
<td><%= rstSimple.Fields("filepath").Value %></td>
<td><%= rstSimple.Fields("filepath").Value %></td>
<td><%= rstSimple.Fields("filepath").Value %></td>
<td><%= rstSimple.Fields("filepath").Value %></td>
</tr>
<%
rstSimple.MoveNext
Loop
%>
</table>

Jul 19 '05 #4
On Wed, 21 Jan 2004 22:32:00 +0000 (UTC), "Shukie"
<sh****@DELETETHISBITHERETOEMAILMEbtinternet.com > wrote:
looking at http://www.asp101.com/samples/index.asp page, could i do this:

---------------------------------------------------

<table border="1">
<%
Do While Not rstSimple.EOF
%>
<tr>
<td><%= rstSimple.Fields("filepath").Value %></td>
<td><%= rstSimple.Fields("filepath").Value %></td>
<td><%= rstSimple.Fields("filepath").Value %></td>
<td><%= rstSimple.Fields("filepath").Value %></td>
</tr>
<%
rstSimple.MoveNext
Loop
%>
</table>

-----------------------------------------------------
Not if you don't want duplicated images. :)

Your code gets a value, rstSimple.Fields("filepath").Value, then
displays it in a cell in a table. It then creates a new cell, with
the exact same data since until you hit the rstSimple.MoveNext it
doesn't get the next value from your record set. So in effect, you
read the next value for the record set only when you create the next
row.

It's a logic error, you need a FOR/NEXT loop to retrieve the next item
in your recordset for each cell, not at each row. More like:

<tr>
FOR i = 1 to 4
<td><%= rstSimple.Fields("filepath").Value %></td>
rstSimple.MoveNext
NEXT
</tr>

Or actually, more like the sample code Ray told you to look at in the
first place... :)

Jeff



"Shukie" <sh****@DELETETHISBITHERETOEMAILMEbtinternet.com > wrote in message
news:bu**********@hercules.btinternet.com...
The link for the photos are requested from the server and so the photo
appears on screen. I can produce a long list by using the response.write

***
& "<br>" or whatever. but is it possible to have it start on the next line
after say 5 photos in a line. i.e. where each - is a photo

- - - - -
- - - - -
- - - - -

rather then
- - - - - - - - - - - - - -
or
-
-
-
-
etc.

thanks
Shukie (apologies for the poor ascii pics)


Jul 19 '05 #5

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

Similar topics

39
by: Zak McGregor | last post by:
Hi all Are there any good solutions to aligning form field names and input boxes without resorting to tables? I am struggling to do this nicely at the moment. Thanks Ciao Zak
4
by: Rob Freundlich | last post by:
I have some servlet-generated tabular data that I need to present, so I'm using an HTML Table. In some cases, it can be quite large. I'm flushing the servlet output every N lines to push the data...
9
by: charliewest | last post by:
Hello - I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#) is there any way to temporarily save an image to a session object, and after running some other operations, later...
3
by: Rashapoo | last post by:
I have just completed a basic course in Access. I have some relational b/g in DB2 and Cobol. I have a question my instructor couldn't answer (or maybe I didn't explain myself) I design a...
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
11
by: Ryan | last post by:
I am writing a VB (2005) program that will allow the user to fill out and print a form. The form input is stored in a database (SQL 2005) to be retrieved/viewed/printed later. The form is...
5
by: Jeff User | last post by:
Hi all I am writing program/framework to server a web site dynamically based on stored web page data with C#, .net1.1 What is the preferred means of controlling page layout, frames or...
5
by: Ed Sproull [MSFT] | last post by:
First I'm pretty new to ASP.NET and I'm having a simple problem. I have small website with a header, sidebar and the the content. I want my content to appear beside my sidebar which seems to be a...
6
by: \Frank\ | last post by:
On the Internet there are many descriptions of the memory layout for a DIB. But none that I can find for a Bitmap. Is that because a Bitmap's layout depends on a related device. If that's...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.