Ho cominciato ora a studiare asp.net quindi abbiate pazienza....
Ho fatto questa procedura seguendo i post in giro e la guida in linea del vb.net.
ma mi da errore sulla riga evidenziata![]()
![]()
mi aiutate per favore
<script language="VB" runat="server">
Sub cmdAccedi_click(sender As Object, e As System.EventArgs)
Dim strConn as string ="dsn=DbProva"
Dim objConn as New OleDbConnection(strConn)
objConn.Open()
Dim dataReader As SqlClient.SqlDataReader
Dim command As New SqlClient.SqlCommand()
command.Connection = objConn
command.CommandText = "SELECT * FROM USER Where UTENTE ='" & usr.value & "' AND PASSWORD = '" & pwd.value & "'"
dataReader = command.ExecuteReader
If dataReader.Read Then
Response.Write ("SI OK !!")
Else
Response.Write ("NOOO!!!!")
End If
dataReader.Close()
End Sub
</script>