Exposing OnclientClick function in user control asp.net C#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/943171/expose-and-raise-event-of-a-child-control-in-a-usercontrol-in-c-sharp">expose and raise event of a child control in a usercontrol in c#</a>  </p>
</blockquote>



<p>I have user control with one html input button.</p>

<p>On page I am consuming that user control. How can I expose onclient event of that input button inside user control so if that button client so i can call page function.</p>

<pre><code>&lt;uc2:UC_LayoutSelector ID="UC_LayoutSelector1" runat="server" OnClientLayoutSelect="UC_LayoutSelector1_MyPageFunction" /&gt;

 &lt;script type="text/javascript"&gt;

        function UC_LayoutSelector1_MyPageFunction(e) {
            alert(e);
        }
    &lt;/script&gt;
</code></pre>
