473,503 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to seperate the listing in 2 columns by ASP

Hello,

I am working on a page which listing all product in one page, by
should be in 2 column rather than just one.

PS: i can do show up all products in 1 column by do while not loop,...

can anyone reply with some simple asp code, just the code for seperate
the listing in 2 column...

many thanks

sample link as belowed

http://www.discountcontactlenses.com/lensindex.asp?S=LS
Jul 19 '05 #1
1 1577
Dim lngColumnCount
lngColumnCount=0
if not RS.EOF then
Response.Write "<tr>"
Do while not RS.EOF
Response.Write "<td>" & RS.Fields(0) & "</td>"
lngColumnCount=lngColumnCount+1
if lngColumnCount=2 then
Response.Write "</tr><tr>"
lngColumnCount=0
end if
RS.MoveNext
Loop
Response.Write "<td colspan=" & 2-lngColumnCount & ">&nbsp;</td></tr>"
end if


"work4u" <ro*****@yahoo.com> wrote in message
news:9c**************************@posting.google.c om...
Hello,

I am working on a page which listing all product in one page, by
should be in 2 column rather than just one.

PS: i can do show up all products in 1 column by do while not loop,...

can anyone reply with some simple asp code, just the code for seperate
the listing in 2 column...

many thanks

sample link as belowed

http://www.discountcontactlenses.com/lensindex.asp?S=LS

Jul 19 '05 #2

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

Similar topics

9
1991
by: Håkon Helgesen | last post by:
Hello! I am using php to get a result from a MySql Query, but the listing is too long to have in one column. Can i use CSS to get my result in several column? How? PS. This is the very first...
4
1535
by: jbesr1230 | last post by:
Hello, How would I print out a listing of the queries that are in a database? I would like to have a spreadsheet style listing with the columns of: Query Name, Description, Modified Date, Created...
0
1192
by: JonS. | last post by:
Hey All, I'm currently working on a program that dynamically loads assemblies from a directory each into their own seperate AppDomains using a somewhat logical extension of Eric Gunnerson's...
0
897
by: Jon | last post by:
I have a datagrid with several columns. I want to allow the users to order these in any way they like. I have a database table where this will be stored for each user, so it is persisted...
0
2095
by: B.N.Prabhu | last post by:
Hi, I have a DataTable with several rows. Its having 20 Columns. when i click the Insert button then i have to check the Database Rows. Whether these new rows are already available in the...
1
1562
by: _thedebugger | last post by:
Dear Friends, We are developing one wbesite in visual studio 2005 and sql server 2000. now my question is I want to seperate some modules on the website. Like 1. there will be few...
2
1624
by: NewBee | last post by:
Hi, I am new in the field and might be asking a dumb question, but please I still need help. I am running the Business Object 5.1.8, and using Freehand SQL with Oracle 8.1 connecting. I have...
1
1991
by: kpg* | last post by:
Hi all, Trying to use the ASP.NET 2.0 membeship API to manage users and user profiles, and of course, to provide role based security to my web app. I have several attributes I want to users,...
13
1432
BezerkRogue
by: BezerkRogue | last post by:
I am trying to get a listing of all records in a dataset to display in a table. I have tried several options I have found through research and get no where. Anyone have any easier ideas? Being new...
0
7202
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
7328
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...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7458
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
5013
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
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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 ...

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.