got an Default.aspx
its Codebehind has a Method: public void DoSomething(){}
The Default.aspx has got a UserControl.ascx
In the Codebehind of my UserControl.ascx I would like to call my DoSomething() from Default.aspx, but this doesn't works:
Default defaultPage = new Default();
defaultPage.DoSomething();
How can I achieve this?
(Default.aspx is also the StartupPage of the Masterpage)