private JlsNavigatorTDS SubmitSearch()
        {
            // Retrieve clauses
            string whereClause = GetWhereClause();
            string orderByClause = GetOrderByClause();

            // ... Load data
            JlsNavigator jlsNavigator = new JlsNavigator();
            jlsNavigator.Load(whereClause, orderByClause);

            return (JlsNavigatorTDS)jlsNavigator.Data;
        }
        private void PostPageChanges()
        {
            JlsNavigator jlsNavigator = new JlsNavigator(jlsNavigatorTDS);

            // Update jls rows
            foreach (GridViewRow row in grdJLNavigator.Rows)
            {
                int workId = int.Parse(((Label)row.FindControl("lblWorkID")).Text);
                bool selected = ((CheckBox)row.FindControl("cbxSelected")).Checked;

                jlsNavigator.Update(workId, selected);
            }

            jlsNavigator.Data.AcceptChanges();

            // Store datasets
            Session["jlsNavigatorTDS"] = jlsNavigatorTDS;
        }