If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > create dynamic html table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-11-04, 00:05
wlj_sh wlj_sh is offline
Registered User
 
Join Date: Jan 2004
Posts: 10
create dynamic html table

code :

<table>
<tr>
<%for i=0 to 10%><td>my test</td>
<%next%>
</tr>
</table>

now,i want when i<7,the 1st row auto change 2nd row;

example:

my test my test my test my test my test my test my test

my test my test my test my test
Reply With Quote
  #2 (permalink)  
Old 01-16-04, 07:01
ggl ggl is offline
Registered User
 
Join Date: Jan 2004
Location: california
Posts: 6
Thumbs up Re: create dynamic html table

Hi here the solutions.

best of luck.

<table>
closeme=false
<%for i=0 to 10%>
if i=7 then
Response.write "<tr>"
closeme=true
end if
<td>my test</td>
if closeme=true
Response.write "</tr>"
closeme=False
end if
</tr>
<%next%>
</table>


Quote:
Originally posted by wlj_sh
code :

<table>
<tr>
<%for i=0 to 10%><td>my test</td>
<%next%>
</tr>
</table>

now,i want when i<7,the 1st row auto change 2nd row;

example:

my test my test my test my test my test my test my test

my test my test my test my test
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On