1

Possible Duplicate:
How to call content Page function from Master Page

I need to access Content Page Method from Master page Event. How can I do this?

I saw this in stackoverflow But not able to know how to use it - LINK

(cphPage.Page as PageBase).YourMethod();

Can you Explain this??

Content Page:

public partial class Call_Center_Main : System.Web.UI.Page
{
    Page_Load(object sender, EventArgs e)
    {
    }

    public void MenuClick(string ClkMenu)
    { 
     // Some Code
    }
}


MasterPage:

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
    {
      //How Can I call MenuClick method from Content Page from Here  ???
    }

How Can I call MenuClick method from Content Page from Menu1_MenuItemClick in Masterpage ???

Community
  • 1
  • 1
Krishna Thota
  • 6,646
  • 14
  • 54
  • 79

0 Answers0