Mohit,
Layout{} doesn't matter. I added it to my "Hello World" to make sure, but the whole discussion came up because of a real project I'm doing where I couldn't find OnNextRecord.
Teddy,
OnAfterGetRecord or OnAfterGetCurrRecord won't work because I'm looking to test some extensive and convoluted field relationships prior to leaving the page. I've got code in OnQueryClosePage that works when closing the page, but that trigger isn't fired when using the "Previous" and "Next" buttons within the Ribbon.
Best Regards,
Dan