>
>I can declare the interface in my ASCX control
>
>Dim ThePage As FacilitiesManagement.Interfaces.IMyWebPage
>
>But this does not actually give me access to the page. ThePage is still Nothing. Somehow I have to instantiate it so it references my page?
>
Hmm, yeah, now that I look at the code I posted I realize it's not right - what we're trying to do here is cast the Page object to IMyWebpage. I guess VB doesn't do this quite the same way as C#, so my code I posted is wrong. It looks like it should actually be something like:
Dim ThePage As FacilitiesManagement.Interfaces.IMyWebPage = TryCast(Page, FacilitiesManagement.Interfaces.IMyWebPage)