Riporto una porzione del file varie.vb
io nella mia pagina ASPX come faccio ad importare per esempio la classe Login_PRIVATE che contiene le dichiarazioni degli oggetti presenti nel codice HTML e le funzioni?codice:Namespace laspiaggetta 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 End Function Public Function ExecuteNonQuery(ByVal strQuery As String) As Boolean End Function Public Function Controlla_Stringa(ByVal Campo As String) As String End Function End Class Public Class Login_PRIVATE Inherits System.Web.UI.Page Protected WithEvents Label1, Label2, Errore As System.Web.UI.WebControls.Label Protected WithEvents Button1 As System.Web.UI.WebControls.Button Protected WithEvents Nome, Pwd As System.Web.UI.WebControls.TextBox Sub Login(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ObjDatabase As New laspiaggetta.database() End Sub End Class End Namespace

Rispondi quotando