Ciao a tutti !

Questo è il mio codice

<html>
<head>
<title> Combinazioni </title>
</head>
<body>
<%@ Page Language="VB" Trace="false" Debug="true" aspcompat=true%>
<script runat="server">

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
dim NumPar
dim NumNum
dim NumCon = 0
NumPar = request.form("NumPar")
NumNum = request.form("NumNum")

IF (NumPar = String.Empty) THEN
response.write("<form name='Combina' target='_blank' method='post' action='Index.aspx'>")
response.write("<h2>Numero parole </h2><input type='text' name='NumPar' id='NumPar' placeholder='Numero parole'>")
response.write("<h2>Numero numeri </h2><input type='text' name='NumNum' id='NumNum' placeholder='Numero numeri'>")
response.write("<input type='submit' name='Invio' value='Invio' id = 'Invio' >



")
END IF

response.write("<form name='Dati' target='_blank' method='post' action='Combinazioni.aspx'>")
DO WHILE (NumPar<>NumCon)
response.write("<h2>Parola")
response.write(NumCon+1)
response.write("</h2><input type='text' name='Par")
response.write(NumCon)
response.write("' id='Par")
response.write(NumCon)
response.write("' placeholder='Parola'>")
NumCon = NumCon + 1
LOOP
NumCon = 0
DO WHILE (NumNum<>NumCon)
response.write("<h2>Numero")
response.write(NumCon+1)
response.write("</h2><input type='text' name='Num")
response.write(NumCon)
response.write("' id='Num")
response.write(NumCon)
response.write("' placeholder='Numero'>")
NumCon = NumCon + 1
LOOP
response.write("<input type='submit' name='Combina' value='Combina' id = 'Combina' onClick='return Check()' >")
end sub

</script>
</body>
</html>

Come potete vadere già creo tanti input quanti ne richiede l utente, ora orrei dichiarare tante variabili quanti campi di input sono stati creati

es
dim Par0
dim Par1
dim Par3

Ho provato cavolate come creare un contatore e concatenarlo nel momento della dichiarazione ma ovviamente senza successo.

Idee ?

Grazie