473,396 Members | 1,833 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.

How does one obtain two columns of row on a single asp page?

Hi,
I have a query result as follows:

State ScSortOrder SlCity SclAdd SlPhone SlKey SlHdFNm
SlHdLNm SlHdSortOrder SlHdPhNo

NY 1 Albany 200 Dee Drive 444-4444 1200 Carol
Hunt 1 444-4441
NY 1 Albany 200 Dee Drive 444-4444 1200 Jack Foster
2 444-4442
NY 1 Albany 200 Dee Drive 444-4444 1200
Hoffman 3 444-4443
NY 2 Yonkers 100 X Drive 999-9999 1250 Jonny
Walker 1 999-9991
NY 3 Bronx 400 Y Drive 111-1111 1260 James
Jones 1 999-9992

I have to use the above query to build a HTML page using asp. However, the
output
need to be in two column(covering the whole page as shown below). The format
of the output would be as shown below.

My questions is: How does one bring the above query result in two columns in
asp output.
How does one force a break i.e. instead of one column the output shows in
two columns.
No idea. Any help or advise is highly appreciated. Thanks in advance.

The final output would be as follows
Albany(in bold) Yonkers(in bold)

200 Dee Drive 100 x Drive
Phone: 444-4444 Phone: 999-9999

Carol Hunt Jonny Walker
Phone: 444-4441 Phone: 999-9991

Jack Foster
Phone: 444-4442 Bronx(in bold)

Hoffman 400 Y Drive
Phone: 444-4443 Phone:111-1111

James Jones
Phone: 111-1112

Jul 22 '05 #1
5 1483
Jack wrote:
Hi,
I have a query result as follows:

State ScSortOrder SlCity SclAdd SlPhone SlKey
SlHdFNm SlHdLNm SlHdSortOrder SlHdPhNo

NY 1 Albany 200 Dee Drive 444-4444 1200
Carol Hunt 1 444-4441
NY 1 Albany 200 Dee Drive 444-4444 1200 Jack
Foster 2 444-4442
NY 1 Albany 200 Dee Drive 444-4444 1200
Hoffman 3 444-4443
NY 2 Yonkers 100 X Drive 999-9999 1250 Jonny
Walker 1 999-9991
NY 3 Bronx 400 Y Drive 111-1111 1260 James
Jones 1 999-9992

I have to use the above query to build a HTML page using asp.
However, the output
need to be in two column(covering the whole page as shown below). The
format of the output would be as shown below.

My questions is: How does one bring the above query result in two
columns in asp output.
How does one force a break i.e. instead of one column the output
shows in two columns.
No idea. Any help or advise is highly appreciated. Thanks in advance.

The final output would be as follows
Albany(in bold) Yonkers(in bold)


Create an html page that displays the data as you desire it. Then modify
your asp code to output the correct html.
If you need help in creating the html, then you need to followup in a
newsgroup devoted to html.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #2
It's all a matter of looping through the result set. I usually set a
variable and do something like

if x = 1 then
Response.Write "</td><td>"
x = 0
else
x = 1
end if

That way you get the new cell for a parent table in every other row.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:08**********************************@microsof t.com...
Hi,
I have a query result as follows:

State ScSortOrder SlCity SclAdd SlPhone SlKey SlHdFNm
SlHdLNm SlHdSortOrder SlHdPhNo

NY 1 Albany 200 Dee Drive 444-4444 1200 Carol
Hunt 1 444-4441
NY 1 Albany 200 Dee Drive 444-4444 1200 Jack Foster
2 444-4442
NY 1 Albany 200 Dee Drive 444-4444 1200
Hoffman 3 444-4443
NY 2 Yonkers 100 X Drive 999-9999 1250 Jonny
Walker 1 999-9991
NY 3 Bronx 400 Y Drive 111-1111 1260 James
Jones 1 999-9992

I have to use the above query to build a HTML page using asp. However, the
output
need to be in two column(covering the whole page as shown below). The
format
of the output would be as shown below.

My questions is: How does one bring the above query result in two columns
in
asp output.
How does one force a break i.e. instead of one column the output shows in
two columns.
No idea. Any help or advise is highly appreciated. Thanks in advance.

The final output would be as follows
Albany(in bold) Yonkers(in bold)

200 Dee Drive 100 x Drive
Phone: 444-4444 Phone: 999-9999

Carol Hunt Jonny Walker
Phone: 444-4441 Phone: 999-9991

Jack Foster
Phone: 444-4442 Bronx(in bold)

Hoffman 400 Y Drive
Phone: 444-4443 Phone:111-1111

James Jones
Phone: 111-1112

Jul 22 '05 #3
http://www.aspfaq.com/2247

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:08**********************************@microsof t.com...
Hi,
I have a query result as follows:

State ScSortOrder SlCity SclAdd SlPhone SlKey SlHdFNm
SlHdLNm SlHdSortOrder SlHdPhNo

NY 1 Albany 200 Dee Drive 444-4444 1200 Carol
Hunt 1 444-4441
NY 1 Albany 200 Dee Drive 444-4444 1200 Jack Foster
2 444-4442
NY 1 Albany 200 Dee Drive 444-4444 1200
Hoffman 3 444-4443
NY 2 Yonkers 100 X Drive 999-9999 1250 Jonny
Walker 1 999-9991
NY 3 Bronx 400 Y Drive 111-1111 1260 James
Jones 1 999-9992

I have to use the above query to build a HTML page using asp. However, the
output
need to be in two column(covering the whole page as shown below). The format of the output would be as shown below.

My questions is: How does one bring the above query result in two columns in asp output.
How does one force a break i.e. instead of one column the output shows in
two columns.
No idea. Any help or advise is highly appreciated. Thanks in advance.

The final output would be as follows
Albany(in bold) Yonkers(in bold)

200 Dee Drive 100 x Drive
Phone: 444-4444 Phone: 999-9999

Carol Hunt Jonny Walker
Phone: 444-4441 Phone: 999-9991

Jack Foster
Phone: 444-4442 Bronx(in bold)

Hoffman 400 Y Drive
Phone: 444-4443 Phone:111-1111

James Jones
Phone: 111-1112

Jul 22 '05 #4
Jack wrote:
My questions is: How does one bring the above query result in two
columns in asp output.
How does one force a break i.e. instead of one column the output
shows in two columns.
No idea. Any help or advise is highly appreciated. Thanks in advance.


I'm not sure if this is qhat you are asking for, but CSS3 offers column
balancing through the column-span attribute:

http://www.w3.org/TR/2001/WD-css3-mu...8/#column-span

I don't know of a browser that supports it, however.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #5

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:08**********************************@microsof t.com...
Hi,
I have a query result as follows:

State ScSortOrder SlCity SclAdd SlPhone SlKey SlHdFNm
SlHdLNm SlHdSortOrder SlHdPhNo

NY 1 Albany 200 Dee Drive 444-4444 1200 Carol
Hunt 1 444-4441
NY 1 Albany 200 Dee Drive 444-4444 1200 Jack Foster
2 444-4442
NY 1 Albany 200 Dee Drive 444-4444 1200
Hoffman 3 444-4443
NY 2 Yonkers 100 X Drive 999-9999 1250 Jonny
Walker 1 999-9991
NY 3 Bronx 400 Y Drive 111-1111 1260 James
Jones 1 999-9992

I have to use the above query to build a HTML page using asp. However, the
output
need to be in two column(covering the whole page as shown below). The format of the output would be as shown below.

My questions is: How does one bring the above query result in two columns in asp output.
How does one force a break i.e. instead of one column the output shows in
two columns.
No idea. Any help or advise is highly appreciated. Thanks in advance.

The final output would be as follows
Albany(in bold) Yonkers(in bold)

200 Dee Drive 100 x Drive
Phone: 444-4444 Phone: 999-9999

Carol Hunt Jonny Walker
Phone: 444-4441 Phone: 999-9991

Jack Foster
Phone: 444-4442 Bronx(in bold)


Use the <table> tag and its children, the <tr> and <td> tags in the output.
put your data inside the <td> tags

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.799 / Virus Database: 543 - Release Date: 11/19/2004
Jul 22 '05 #6

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

Similar topics

1
by: Massimiliano Malloni | last post by:
Sorry for my english I have a table that contains data of career about the person (staff) like this ... EMATR EANID EMEID EGIID ecc. .. ecc. .. ecc. .. ecc. .. 1 1999 12 31 2002 12 31 1...
3
by: Jukka K. Korpela | last post by:
I have noticed that the meaning of visibility: collapse has been discussed on different forums, but with no consensus on what it really means. Besides, implementations differ. The specification...
6
by: Chuck | last post by:
I have a report with three columns, accross then down, and two groups. Currently the group headers are only one column wide and appear in the left hand column. How can I make the group header be...
4
by: Alex | last post by:
I have a main report (single column report and page headers and footers) and a 4 column subreport in the detail section. The report will generally be a single page. Everything prints fine except...
6
by: Mark | last post by:
I have been working for quite some time on this issue which in theory should be quite simple. The problem is that the Cancel and Save events are not fired when their respective buttons are...
3
by: Ross | last post by:
I have an aspx page containing two IFrames, each of which contain aspx pages. The mother page has a dataset filled with a single call to my Oracle database. This dataset has three tables. The...
5
by: Stephen Poley | last post by:
There are plenty of people around these groups who promote the idea of flexible page design. However, while employing relative units and not fixing column-widths is a big improvement on...
3
by: BartMan | last post by:
Greetings, I have a gridview which is sitting on a multi view control (witin a view), and it is bound to a dataset which I dynamically apply to the control within asp.net page. The problem is...
4
by: rn5a | last post by:
Consider the following code: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) Dim dInfo As DirectoryInfo dInfo = New DirectoryInfo(Server.MapPath("/Folder1"))...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.