Namespace ASPNetPortal
Public MustInherit Class Events
Inherits ASPNetPortal.PortalModuleControl
Protected WithEvents myDataList As System.Web.UI.WebControls.DataList
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
'*******************************************************
'
' The Page_Load event handler on this User Control is used to
' obtain a DataReader of event information from the Events
' table, and then databind the results to a templated DataList
' server control. It uses the ASPNetPortal.EventDB()
' data component to encapsulate all data functionality.
'
'*******************************************************'
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Obtain the list of events from the Events table
' and bind to the DataList Control
Dim events As New ASPNetPortal.EventsDB()
myDataList.DataSource = events.GetEvents(ModuleId)
myDataList.DataBind()
End Sub
End Class
End Namespace