Hi,
Even your ID is not sequencial but you can at least check the next article number from the database. you can query on the database like,
select top 1 * from articles where articleid > currentArticleID order by articleid
you also need to cosider last article and all other possible scenarios.
hope this may help you.
best luck.