Hi,
Base on your description, you want to load an iframe into a contentplacehloder when you click a button, right?
You can try to use javascript to create an iframe, but you cannot add the content into the contentplaceholder directly, you can put a div control in the contentplaceholder and load the iframe in the div.
For eaxcmple:
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick ="createIframe();return false;" />
<asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server"><div id="xx"></div></asp:ContentPlaceHolder>
Javascript code:
function createIframe()
{
document.getElementById('xx').innerHTML = '<iframe name="ifrm" src="http://www.google.com/"></iframe>';
}
Because you load the iframe into the contentplaceholder, so you should make sure the contentplceholder cannot be overrided by the content page, or else the default content of the contentplaceholder will be convered by the content page. (The more about this you can read this article: http://quickstarts.asp.net/QuickStartv20/aspnet/doc/masterpages/default.aspx).
Hope it helps.
notice:
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support