Calling MasterPage Subroutines from a ContentPage

J

jeffmagill

Is it possible? I haven't been able to find any information about this.
Not on the web, not in books.

Is it possible to call a function or subroutine which is defined in a
MasterPage from it's derivative ContentPage?

Thanks.
Jeff
 
G

Guest

In your aspx add:
<%@ MasterType virtualPath="~/<MasterPageName>.master"%>

Then in its codebehind:
this.Master.MyMethod()

Hope this is what you needed.
 
J

jeffmagill

Thanks for your quick responses!! I'll let you guys know how it turns
out.

You're welcome for point this out. If you want, I can point out more
problems sooner :)

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top