Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-12-04 : 08:18:24
|
Pritam writes "I am trying to display about 20 images (total 100) on asp page. When I view the image.asp page all the 20 images are displayed in one row and the page stretches horizontally.How do i code the asp page which will show 5 images at a time in one row and next five in the IInd row n like this till it reaches the 20th image.Thanks.extract of my code is :<table width=100<TR> <TD><img src></TD></TR>while <wend> " |
|
|
ehorn
Master Smack Fu Yak Hacker
1632 Posts |
Posted - 2003-12-04 : 09:44:05
|
| [code]dim i,max_ii = 1max_i = 20response.write "<table>" & vbcrlf & "<tr>" while i <= max_i response.write "<td>image" & i & "</td>" If (i mod 5 = 0) and ( i > 1 ) then response.write "</tr>" & vbcrlf & "<tr>" end if i = i+1 wendresponse.write "</tr>" & vbcrlf & "</table>"[/code] |
 |
|
|
|
|
|