title: How to call content Page function from Master Page
body: <p>It is necessary to call content Page function from Master Page.
  Please let me know if more data needed.</p>
  
  <p>MasterPage.master.cs looks like</p>
  
  <pre><code> protected void Required_Function(object sender, EventArgs e)
   {
      // call Update_Content_Page() from content page 
   }
  </code></pre>
  
  <p>Default.aspx looks like</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolder" Runat="Server"&gt;
  
  &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;Hello people!&lt;/asp:Label&gt;
  
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>Default.aspx.cs looks like </p>
  
  <pre><code>using…
  public partial class _Default : System.Web.UI.Page
  { 
      protected void Update_Content_Page()
      {
          Label1.Text=”Hello world”;
      }
  }
  </code></pre>