Call a Function in your MasterPage from your .aspx page

/ Published in: VB.NET
Save to your folder(s)

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:

Copy this code and paste it in your HTML
  1. CType(Me.Master, MasterPages_MasterPageName).FunctionOrSubName()


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.