private void Delete()
        {
            Page.Validate();

            if (Page.IsValid)
            {
                // Delete all data for toDolist
                int toDolistId = Int32.Parse(hdfToDoListId.Value);

                ToDoListInformationBasicInformation toDolistInformationBasicInformation = new ToDoListInformationBasicInformation(toDolistInformationTDS);
                toDolistInformationBasicInformation.Delete(toDolistId);

                ToDoListInformationActivityInformation toDoListInformationActivityInformation = new ToDoListInformationActivityInformation(toDolistInformationTDS);
                toDoListInformationActivityInformation.DeleteAll(toDolistId);

                // Update databse
                UpdateDatabase();

                // Store datasets
                Session["toDolistInformationTDS"] = toDolistInformationTDS;

                // Redirect
                string url = "";

                if (Request.QueryString["dashboard"] == "True")
                {
                    url = "./../../FleetManagement/Dashboard/dashboard_login.aspx?source_page=out";
                }
                else
                {
                    url = "./toDoList_navigator2.aspx?source_page=toDoList_delete.aspx&toDo_id=" + hdfToDoListId.Value + GetNavigatorState() + "&update=yes";
                }
                Response.Redirect(url);
            }
        }