Might need to check for a null value first.
if(objDataReader["id"] != System.DbNull.Value)db_pageID = (int)objDataReader["id"];elsedb_pageID = -1;