I have an asp.net page in an iframe where all links target _blank
<base target="_blank" />
But I want the form on it to submit to _self (i.e. the iframe where the page is located) when the one button is clicked. The form is an <asp:Panel>
with an <asp:Button>
control for submitting it.
Where can I set the target for this form? Since there isn't a <form>
tag or an <input>
tag in the file (ASP.NET makes them when it renders the page), I don't know how to change the target to override my <base>
tag.