I have a site with a master page, Site.master. Many of Site.master's content pages have the same button that functions the same way on each page:
<asp:ImageButton ID="btn" runat="server" OnClick="btn_Click" />
Is it possible to write btn_Click
once in Site.master's CodeFile and have it called in the OnClick attribute of each content page's button? I'm trying to avoid adding the same function (or anything at all) to each content page's CodeFile.
Thanks!