How can I access MasterPage html elements from a User Control click event? I have tried:
in master page
<div id="menu" runat="server"></div>
in click event for control:
UserControl uc = (UserControl)LoadControl("a.ascx");
Page.FindControl("menu").Controls.Add(uc);
in master page
<div id="menu" runat="server"></div>
in click event for control:
UserControl uc = (UserControl)LoadControl("a.ascx");
Page.FindControl("menu").Controls.Add(uc);