//******************************************************* // // 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 ASPNET.StarterKit.Portal.EventDB() // data component to encapsulate all data functionality. // //******************************************************* private void Page_Load(object sender, System.EventArgs e) { // Obtain the list of events from the Events table // and bind to the DataList Control ASPNET.StarterKit.Portal.EventsDB events = new ASPNET.StarterKit.Portal.EventsDB(); myDataList.DataSource = events.GetEvents(ModuleId); myDataList.DataBind(); }