Hi,
Here is a code to display all elements in the array:
<script runat="server">
Sub Page_Load()
Dim strArray() As String = {"Apple", "Orange", "Grape"}
Response.Write("<TABLE border=1>")
For Each fruit As String In strArray
Response.Write("<TR><TD>" + fruit + "</TD></TR>")
Next
Response.Write("</TABLE>")
End Sub
</script>
Hope this would help.
|