User1738843376 posted
Hi,
I have created a property on my masterpage
Public Property FillersInPage As New List(Of Filler)
This list needs to be updated from within a usercontrol that will be instanced multiple times inside a page that uses the masterpage mentioned above.
So, it will look something like this:
- MasterPage ("~/main.master")
- Page ("~/details.aspx")
- UserControl1 ("~/app_ctrls/userControl.ascx")
- UserControl2 ("~/app_ctrls/userControl.ascx")
- UserControl3 ("~/app_ctrls/userControl.ascx")
I've tried referencing the masterpage inside the userControl.ascx, so that i could later on use DirectCast to instance and access the FillersInPage property of the masterpage in order to update its contents, but i can't seem to be able to do so.
I'm using a Website project with vb.net.
Anyone got a clue on the correct way to do this, if there is one?