ASP 101 News Flash |
 |
|
|
Sample HTML Code generated by the ASP:
<!--
This outer table is just so you don't end up having to scroll
so far down to get to the view source buttons. It really has
nothing to do with the sample.
-->
<table border="1">
<tr>
<td valign="top">
<h3>Static Array</h3>
<p>The array has 4 elements. They are:</p>
<table border="1">
<thead>
<tr>
<th>Index</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>Susan</td>
</tr>
<tr>
<td>1</td>
<td>Andy</td>
</tr>
<tr>
<td>2</td>
<td>Fred</td>
</tr>
<tr>
<td>3</td>
<td>Kelly</td>
</tr>
</tbody>
</table>
<p>The array has 4 elements. They are:</p>
<table border="1">
<thead>
<tr>
<th>Index</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>John</td>
</tr>
<tr>
<td>1</td>
<td>Susan</td>
</tr>
<tr>
<td>2</td>
<td>Fred</td>
</tr>
<tr>
<td>3</td>
<td>Kelly</td>
</tr>
</tbody>
</table>
</td>
<td valign="top">
<h3>Dynamic Array</h3>
<p>The array has 2 elements. They are:</p>
<table border="1">
<thead>
<tr>
<th>Index</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>15</td>
</tr>
<tr>
<td>1</td>
<td>20</td>
</tr>
</tbody>
</table>
<p>The array has 4 elements. They are:</p>
<table border="1">
<thead>
<tr>
<th>Index</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>15</td>
</tr>
<tr>
<td>1</td>
<td>20</td>
</tr>
<tr>
<td>2</td>
<td>25</td>
</tr>
<tr>
<td>3</td>
<td>30</td>
</tr>
</tbody>
</table>
</td>
<td valign="top">
<h3>Array Using the Array Function</h3>
<p>The array has 3 elements. They are:</p>
<table border="1">
<thead>
<tr>
<th>Index</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>red</td>
</tr>
<tr>
<td>1</td>
<td>green</td>
</tr>
<tr>
<td>2</td>
<td>blue</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>

|
|