Posted By

kfiil on 07/24/12


Tagged

aspnet masterpage


Versions (?)

Access a Method in a Master Page with Code-Behind


 / Published in: C#
 

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

Access a Method in a Master Page with Code-Behind

  1. ClassName MasterPage = (ClassName)Page.Master;
  2. MasterPage.MasterMethod();
  3.  
  4. ClassName ParentMasterPage = (ClassName)Page.Master.Master;
  5. ParentMasterPage.ParentMasterMethod();

Report this snippet  

You need to login to post a comment.