Return to Snippet

Revision: 12394
at March 12, 2009 17:20 by blackf0rk


Initial Code
CType(Me.Master, MasterPages_MasterPageName).FunctionOrSubName()

Initial URL
http://codefinds.blogspot.com/2008/08/call-function-in-your-masterpage-from.html

Initial Description
If you're going to be using a common function throughout the Web site, you can include the function in your MasterPage and gain access to it from each aspx that inherits from this MasterPage; like so:

Initial Title
Call a Function in your MasterPage from your .aspx page

Initial Tags
page, function

Initial Language
VB.NET