If it is during the postback of the page you are referring to you can do
(Page)System.Web.HttpContext.Current.CurrentHandler
This will convert the current postback session into a Page which you can convert to the class that has your webpage and then call the function.
However, the comments are correct, this is bad architecture to do this. You really need to look at doing it a different way.