ASP 101 - Active Server Pages 101 - Web04
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash 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>


Output

Samples
Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers