Access a Method in a Master Page with Code-Behind


/ Published in: C#
Save to your folder(s)

Access a Method in a Master Page with Code-Behind


Copy this code and paste it in your HTML
  1. ClassName MasterPage = (ClassName)Page.Master;
  2. MasterPage.MasterMethod();
  3.  
  4. ClassName ParentMasterPage = (ClassName)Page.Master.Master;
  5. ParentMasterPage.ParentMasterMethod();

URL: http://www.braintrove.com/id/17

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.