Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/04/2008, 05:05
ARAPSPGON
 
Fecha de Ingreso: octubre-2007
Mensajes: 57
Antigüedad: 17 años, 4 meses
Puntos: 0
Pregunta (DUDA principiante) VB.NET

Hola tengo una duda que no consigo aclarar probando una estructura de VB.NET

¿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
arrays.aspx.vb
Código PHP:
Partial Class _Default
    Inherits System
.Web.UI.Page
 
    Dim numeros
() As Integer = {123}
    
Dim num2() As Integer numeros

    Sub Page_Load
()
        For 
As Integer 0 To num2.Length 1
            p1
.InnerHtml = (num2(i))
        
Next

    End Sub
End 
Class 
gracias