RegisterForEventValidation can only be called during Render();