Here is my situation. I have a mater page called masterpage.master to show a total count of users. in content page, I have a iframe. Inside iframe, I have all pages to use another master page called FrameMasterPage.master. so in one of the content page inside iframe, how can I call a method in masterpage.master. For a content page that not inside iframe, I can use following code.
if ((Page.Master != null) && (Page.Master is MasterPage))
(this.Page.Master as MasterPage).UpdateUserCount(AjaxManager, ajaxcontrol);
Thanks,