prova così:
codice:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Inserire qui il codice utente necessario per inizializzare la pagina
If Not Me.IsPostBack Then dato.Text = array(Contatore)
End Sub
Private Sub Button_avanti_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_avanti.Click
Contatore = CInt(Me.ViewState("contatore"))
If Contatore < 2 Then Contatore += 1
Me.ViewState("contatore") = Contatore
dato.Text = array(Contatore)
End Sub
Private Sub Button_indietro_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_indietro.Click
Contatore = CInt(Me.ViewState("contatore"))
If Contatore > 0 Then Contatore -= 1
Me.ViewState("contatore") = Contatore
dato.Text = array(Contatore)
End Sub
Private array$() = {"Stefano", "Carlo", "Nicola"}
Private Contatore% = 0