マークアップ:
<iframe id="yourid" runat="server" src="http://initialsource.aspx"> </iframe>
そしてコードの背後に...
yourid.src="http://to-the-new-site.aspx";
私はそれがうまくいくと思う。
UPDATE - providing JS version:
次のようなjavascript関数を定義した場合:
function setFrameSrc(newSrc)
{
document.getElementyById('yourid').src=newSrc;
//note: 'yourid' is the iframe id from my initial example.
}
そしてあなたはこのようなあなたのリンクを持っています:
function setFrameSrc(newSrc)
{
document.getElementById('yourid').src=newSrc;
//note: 'yourid' is the iframe id from my initial example.
}
Will work. Test here.