ciao,
come riportato sul manuale di ASP.NET ho fatto la classe database.vb
codice:
Imports System
Imports System.Data
Imports System.Data.OleDb

Namespace TYASPNET
    Public Class database
        Public ConnectionString As String
        Dim objConn As New OleDbConnection()
        Dim objCmd As New OleDbCommand()

        Public Function SelectSQL(ByVal strSelect As String) As OleDbDataReader
            Try
                objConn = New OleDbConnection(ConnectionString)
                objCmd = New OleDbCommand(strSelect, objConn)
                objCmd.Connection.Open()
                Return objCmd.ExecuteReader
                objCmd.Connection.Close()
            Catch ex As OleDbException
                Return Nothing
            End Try
        End Function

        Public Function ExecuteNonQuery(ByVal strQuery As String) As Boolean
            Try
                objConn = New OleDbConnection(ConnectionString)
                objCmd = New OleDbCommand(strQuery, objConn)
                objCmd.Connection.Open()
                objCmd.ExecuteNonQuery()
                objCmd.Connection.Close()
                Return True
            Catch ex As OleDbException
                Return False
            End Try
        End Function
    End Class
End Namespace
volevo sapere prima di tutto se il nome del namespace deve essere per forza quello, io credo proprio di no.
Poi volevo sapere quali altre funzioni ci potrei mettere dentro.
E infine vorrei sapere come si compila(uso VS.NET) premendo F5?