Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access method in a different master file?

Status
Not open for further replies.

onechuck

IS-IT--Management
Feb 14, 2006
79
US
I have a method in the main.master file that I want to access from the subMain.master file. How do I do that?
 
You can get to the main.master via the Page.Master property. You will then need to cast Page.Master to the type of class that main.master is in order to call one of it's methods.

Dim m as main = DirectCast(Page.Master, main)
m.DoSomething()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top