October 12, 200916 yr Hi , I'm just about to throw my pc out the window. I have an aspx page, in it I have user control. Also in aspx page code behind I have a public function let's say called TestFunction . How on earth I call that function from my UserControl code behind ? I've done it before (long time ago) , but I just can't remind myself and I can't find any solution on google. I tried : Dim myPage as Page = CType(MyBase.Page,Page) Dim myPage as Page = CType(Page.Parent,Page) Dim myPage as Page = CType(Parent.Page,Page) etc No luck ... Thanks for any help.
October 29, 200916 yr I'm not sure that what you are wanting to do is possible as the UserControl gets included into your page class as a data member Can you make the method that you need to access in the container class a static?
Create an account or sign in to comment