Ok, im sorry to bug again. I guess I'm misunderstanding something (also I cant find the appropriate manual compiling commands) ;_;
This is an example of what I have
--
default.aspx--
<%@ Page Language="
vb" AutoEventWireUp="false" src="Default.aspx.
vb" Inherits="DefaultForm" %>
[html items with a button]
-----------------
--
default.aspx.vb--
Public Class DefaultForm
Inherits System.Web.UI.Page
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Public Sub Button1_Click(sender As Object, e As System.EventArgs)
Dim MyClassObject As New MyClass <- error here
MyClassObject.RunThisCode()
MyClassObject = Nothing
End Sub
End Class
--------------------------
--
MyClass.vb--
Public Class MyClass
Public Sub RunThisCode()
'do something
End Sub
End Class
---------------------
As you can see, I can get the .aspx and .aspx.
vb files to work properly, its when I want to use the third file (MyClass.
vb), is where I get the problem. I tried adding another page directive, but I got an error stating that I could only have one. Think you can show me the syntax of how I can use the MyClass.
vb items using the example above? And if its not too much trouble, the correct compiling syntax for the class?
Thanks abunch, sorry for not understanding completely ;p