From UserControl to parent master page
<p>hi i have a weird scenario but this was how it was designed before me. Basically I have userControl, and there is a child.masterpage</p>

<p>in the userControl in the ascx file it contains the following</p>

<pre><code>&lt;div&gt;&lt;%=_template%&gt;&lt;/div&gt;
</code></pre>

<p>the child.masterpage inherits from a parent.masterpage, in the child.masterpage there is a call to the userControl</p>

<pre><code>&lt;asp:Content&gt;&lt;ucc:UserControl&gt;&lt;/ucc&gt;
</code></pre>

<p>the parent.masterpage has other fields in it and it has a .cs file with a c# funtion</p>

<pre><code>public void passVal(string s)
</code></pre>

<p>Now what I want to do is to pass a value from the user control directly to the parent.masterpage function so that I can put it in the parent.masterpage literal I have created.</p>

<p>How can I achieve this (again, this is existing design and I cant turn things around) I am just adding a functionality.</p>

<p>Thank you very much (i am a newbie in c# by the way) thanks</p>

<pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" MasterPageFile="../common/main.master" %&gt;
&lt;%@ Register Src="UserControl.ascx" TagName="Ord" TagPrefix="uc" %&gt;
&lt;asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server"&gt;
&lt;div class="in"&gt;&lt;uc:OrderReceipt ID="myord" runat="server" Visible="true"/&gt;
 &lt;div style="margin-bottom:30px;"&gt;
&lt;a href="~/" id="HomeLink" runat="server" class="BackLink"&gt;Back to Home Page&lt;/a&gt;
&lt;/div&gt;
&lt;/asp:Content&gt;
</code></pre>
