ASP.net 2012 を使用しています。 (C# AS CODE BEHIND)
親ウィンドウ (ParentMain.aspx) があります。aspx.cs で以下のスクリプトを使用して、親ウィンドウから新しいウィンドウ (SampleChild1.aspx) を開くことができました。
string strScript = string.Format("window.open('/Sample.UI/SampleChild1.aspx','window','toolbar=no,hotkeys=no,location=no,directories=no,menubar=no,scrollbars=はい、ステータス=1、サイズ変更可能=0、幅=600、高さ=500');"); ScriptManager.RegisterStartupScript(this, this.GetType(), "nothing", strScript, true);
SampleChild1.aspx を開いた後、2 つのウィンドウが開いています。1) ParentMain.aspx 2) SampleChild1.aspx samplechild1.aspx リンクをクリックすると、samplechild1 ウィンドウが開きます。問題ない。
以下のフローが機能することを望みます。samplechild1.aspx から、aspx ページから samplechild2.aspx を開く必要があります。この samplechild2.aspx は、別の新しいウィンドウとして開いたり、samplechild1.aspx の上に開いたりするのではなく、ParentMain.aspx ページの上に開く必要があります。
ParentMain.aspx で開いた samplechild1.aspx を設定する方法を教えてください。
一刻も早い解決策をお願いします。
ありがとう、UTD