protected void grdResults_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int index = Convert.ToInt32(e.CommandArgument);
            GridViewRow row = grdResults.Rows[index];
            int subscriptionID = Convert.ToInt32(row.Cells[0].Text);

            switch (e.CommandName) {
                case "paySubscription":
                    crud crud = new crud();
                    subscription subscription = crud.selectSubscription(subscriptionID);
                    subscription.paymentConfirmed = true;
                    crud.updateSubscription(subscription);
                    break;
                case "removeSubscription":
                    new crud().deleteSubscription(subscriptionID);
                    break;
                default:
                    break;
            }

            if (ddCourseNames.SelectedIndex > 0) {
                ddCourseNames_SelectedIndexChanged(sender, EventArgs.Empty);
                return;
            } else if (ddUserProfiles.SelectedIndex > 0) {
                ddUserProfiles_SelectedIndexChanged(sender, EventArgs.Empty);
                return;
            } else {
                cldrDates_SelectionChanged(sender, EventArgs.Empty);
            }
        }