Sorry for the vagueness. The class DataConnection is in a file named
cnnData.vb and the aspx file that is calling it is myfile.aspx. What I'm
trying to ask is why don't I get the text "Hello Steven" when myfile.aspx is
loaded since it is calling cnnData.vb? Also, is it ok to have a Page_Load
sub in both files?
--
Thanks in advance,
Steven
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:O0**************@tk2msftngp13.phx.gbl...
According to your code, the Page you're creating IS the DataConnection
class.
"Steven K" <sk****@troop.com> wrote in message
news:eJ*************@TK2MSFTNGP10.phx.gbl... Hello,
I have created a simple Class:
Public Class DataConnection : Inherits Page
Public Sub Page_Load(Sender As Object, E As EventArgs)
Response.Write("Hello Steven")
End Sub
End Class
The question I have is, how does the Page_Load event in the Class act
when it is being pulled into an aspx page?
<%@ Page Inherits="DataConnection" src="cnnData.vb" Language="VB"
Explicit="True" Debug="True"%>
--
Thanks in advance,
Steven