When you need a scripting language directive
<% response.write("The DEFAULT LANGUAGE FOR ASP is VBSCRIPT <br />") response.write("So, it does not have to be specfified in the line Directive. <br />") response.write("Otherwise, when another scripting language is used, <br />") response.write("that language must be specified. <br />") response.write("<div style='margin-top:10px; font-family:arial'>") response.write("<h3>For example, if javascipt is used, that must be specified on the first line as follows</h3>") response.write("<h3><%@ language ="javascript"%></h3> ") response.write("<h3><!DOCTYPE html ></h3> ") response.write("<h3><html></h3>") response.write("</div>") response.write("<p>Excel reports Column then Row but Dim table reverses to Row - Column</p>") Dim x(2,3) x(0,0)="1" x(0,1)="2" x(0,2)="3" x(0,3)="4" x(1,0)="5" x(1,1)="6" x(1,2)="7" x(1,3)="8" x(2,0)="9" x(2,1)="10" x(2,2)="11" x(2,3)="12" response.write("<table style='border:10px solid teal; width:25%'>") for i=0 to 2 response.write("<tr>") for j=0 to 3 response.write("<td style='background-color: #FFCC66; border:2px solid black'>" & x(i,j) & "</td>") next 'now get the next j array index number response.write("</tr>") ' when the 4th j element is accessed, write the row. next response.write("</table>") %>
and coding a Classic ASP Table.
***************
Here is the code for the display on the left.
ASP can output plain text WITHOUT THE ASP DIRECTIVE!:
The DEFAULT LANGUAGE FOR ASP is VBSCRIPTExcel reports Column then Row but Dim table reverses to Row - Column
1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 |