Errore asp.net
Input string was not in a correct format.
qui controllo le variabili
codice:
Dim voglioemail as integer
Dim autorizzo as integer
Dim formazione as integer
Dim lavoro as integer
if sendnewsletter.checked ="true" then
voglioemail = "1"
else
voglioemail = "0"
end if
if showmyinfo.checked = "true" then
autorizzo = "1"
else
autorizzo = "0"
end if
if sendformazione.checked = "true" then
formazione = "1"
else
formazione = "0"
end if
if sendlavoro.checked = "true" then
lavoro = "1"
else
lavoro = "0"
end if
codice:
Sql = "INSERT INTO Utenti(nome, cognome, azienda, email, pass, comune, sendnewsletter, sendlavoro, sendformazione, showmyinfo) VALUES ("+nome.text+"','"+cognome.text+"','"+azienda.text+"','"+email.text+"','"+pass.text+"','"+comune.text+"','"+voglioemail+"','"+lavoro+"','"+formazione+"','"+autorizzo+"')"
a me sembra ok.
ho provato di già a stampare la sql ma non me la stampa nemmeno. mi blokka prima con questo errore.
ho prvato a fare cose del tipo
sql = ""
response.write(sql)
exit sub
ma nada