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 that includes summing this value with a few others. The function that performs the calculation is in a UserControl on the page.
How do I get a reference to the page object so I can use FindControl to get an instance of the user control so I can call that calcuation function?
Thanks in advance for your help
You have a design crisis. I am not even going to mention Rube Goldberg.. oops…
If you have some logic that you need to use in a UserControl and for an async pull you should segregate that logic in it’s own class that you call from the user control and the pagemethod that you are using for your Ajax.
I am not even going to entertain a solution to your problem as it is. It would be counterproductive for both of us and I may get an aneurysm thinking about it. 😉