I have a web part embedded in a publishing site that needs to get a reference to the
<form runat="server"/> in the master page.
I have to set the 'action' attribute to allow the form to post outside of the site.
Instead of trying every combination of this.Page.Master and this.Parent.Page.Master - I wonder if someone has accomplished this?
Currently I have:
System.Web.UI.HtmlControls.HtmlForm form = (System.Web.UI.HtmlControls.HtmlForm)this.Parent.Page.Master.FindControl("aspnetForm");
But this doesn't work.