eRad
11-22-2004, 11:39 AM
in one of my ASP.NET applications i fill a dropdownlist with data from a database source. normally i do this in the Page_Load sub. However for this app i am using a code behind source, and i find that with doing this the Page events don't fire (specifically, Page_Load).
Is this because it's an included class and not the actual Page itself, or am i doing something wrong? How do i link the page's event controls to the class's?
the .vb file has a class declaration like this:
Public Class Lab_Request
Inherits System.Web.UI.Page
...
End Class
and in the .aspx file the page directive includes it like so:
<%@ Page ... Src="lab_request.vb" Inherits="Lab_Request"%>
Is this because it's an included class and not the actual Page itself, or am i doing something wrong? How do i link the page's event controls to the class's?
the .vb file has a class declaration like this:
Public Class Lab_Request
Inherits System.Web.UI.Page
...
End Class
and in the .aspx file the page directive includes it like so:
<%@ Page ... Src="lab_request.vb" Inherits="Lab_Request"%>