|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Displaying Horizontal Record
<i><b>Originally posted by : max (shawn@speaketh.com)</b></i><br />I try to display records horizontally instead of cascading the records. I try splitting the table but it display 5 rows of identical cascading records. What I want to do is just displaying 5 records in horizontal line. <br />The code below will display 5 record per page(as specify in PageSize)cascadingly. I tried to display it horizontally but it just can't work....pls help!!! <br /><br />sample link:http://homex.s-one.net.sg/member2/adpost/index2.htm<br />this is what I try to do<br />Below are the code: <br /><br /><br />For intRecord = 1 to objRst.PageSize <br />Response.Write "<tr><td>" & objRst("Product_name") & "</td></tr>" <br />objRst.MoveNext <br />If objRst.EOF Then Exit for <br />Next <br /><br /><br />Thanks a lot!!! <br /><br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : steve</b></i><br />Just remove the <tr> </tr> inside the do while loop and this will be one big long horizontal row in a table. <br /><table><br /><tr><br />For intRecord = 1 to objRst.PageSize <br />Response.Write "<td>" & objRst("Product_name") & "</td>" <br />objRst.MoveNext <br />If objRst.EOF Then Exit for <br />Next<br /></tr> <br /></table><br /><br />try this code<br /><br />steve<br />------------<br />max at 2/13/2000 8:58:13 PM<br /><br />I try to display records horizontally instead of cascading the records. I try splitting the table but it display 5 rows of identical cascading records. What I want to do is just displaying 5 records in horizontal line. <br />The code below will display 5 record per page(as specify in PageSize)cascadingly. I tried to display it horizontally but it just can't work....pls help!!! <br /><br />sample link:http://homex.s-one.net.sg/member2/adpost/index2.htm<br />this is what I try to do<br />Below are the code: <br /><br /><br />For intRecord = 1 to objRst.PageSize <br />Response.Write "<tr><td>" & objRst("Product_name") & "</td></tr>" <br />objRst.MoveNext <br />If objRst.EOF Then Exit for <br />Next <br /><br /><br />Thanks a lot!!! <br /><br />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Displaying Horizontal Record |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|