Posted on: 8/5/2015 12:15:36 PM | Views : 630

Hi,
I have a masterpage that contains a usercontrol. This user control has a public method that i'd like to call from within the page that is currently loaded.
I've tried
Dim myControlRef as UserControl = Page.Master.FindControl("myControl") myControlRef.MyMethod() but the MyMethod method does not get exposed, and subsequently it generates an error:
BC30456: 'MyMethod' is not a member of 'System.Web.UI.UserControl'.

How can i achieve this? am i doing something wrong? the IDs are correct, and the MyMethod Sub is set as Public...

Go to the complete details ...