How do I get a reference to the Page object in an asmx it ca

I have a page that calls on an asmx within the project (for some ajax stuff). Within that asmx I’m calculating a value and returning it to be output to the screen.However I need to do a recalculation...