/// <summary> /// The method that supports the display of announcements and events that the logged-on user has added and /// the declarations he has declared his help and events he takes part in. /// The method also supports the option of resigning, editing and deleting announcements and events. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { db = new SQLDatabase(); db.Connect(); list_announcements = db.ListAnnouncements(); list_events = db.ListEvents(); dt = db.getMyActivities(db.getId((string)Session["id"])); dt_events = db.getMyActivitiesEvents(db.getId((string)Session["id"])); if (db.getType_User(db.getId((string)Session["id"])) == "volounteer") { display_assigned_announcements(); display_created_events(); display_joined_events(); } display_created_announcements(); db.Disconnect(); }