 <p>If I was you, I would keep the last fetched <code>id</code> from the dataset.</p> <p>Therefore you need to change your <code>Controllers.OdbcController.GetRecords()</code> to accept an <code>id</code> and return the latest one.</p> <p>In the <code>GetRecords</code> check for that <code>id</code> using a <code>where</code> clause.</p> <p><strong>EDIT:</strong></p> <p>According to your update: are you sure the <code>ID</code> gets passed to the config correctly?</p> <p>You use two different calls to save and retrieve:</p> <pre><code>ConfigurationManager.AppSettings["LastId"] </code></pre> <p>vs.</p> <pre><code>Common.UpdateConfigFile.UpdateAppSetting("LastId", _lastId) </code></pre> <p>Why not use this?</p> <pre><code>ConfigurationManager.AppSettings["LastId"] = _lastId; </code></pre>