¿Como hago para recorrer con el bucle el array e ir mostrandolo en pantalla del navegador?
con innerHtml solo me muestra el ultimo valor
arrays.aspx
Código PHP:
<%@ Page Language="VB" CodeFile="041_ejemplo_arrays.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Página sin título</title>
</head>
<body>
<p id="p1" runat="server"/>
</body>
</html>
Código PHP:
Partial Class _Default
Inherits System.Web.UI.Page
Dim numeros() As Integer = {1, 2, 3}
Dim num2() As Integer = numeros
Sub Page_Load()
For i As Integer = 0 To num2.Length - 1
p1.InnerHtml = (num2(i))
Next
End Sub
End Class