モードウィンドウは現在のページを展開する便利な方法ですが、ASPXファイルはこの方法でHTMファイルのiframeとしてのみ呼び出されます。同時に、リクエスト文字列は、2つを一緒に渡すために便利で一般的に使用されるページを作成する方法でもあります。モードウィンドウで?
JSスクリプトを使用して、この関数を実装できます。
1。ページコードを呼び出します:
<スクリプト言語= "javascript">
関数getCorrelativeId()
{{
rdl = document.getElementsbyname( "rdlsystem");
input = document.getElementById( "txtcorrelelativem");
sysid = "";
for(i = 0; i <rdl.length; i ++)
{{
if(rdl [i] .tagname == "input")
{{
if(rdl [i] .cecked)
{{
sysid = rdl [i]。
}
}
}
arg = window.showmodaldialog( "searchitemc.htm?sysid ="+sysid、window、 "resizable:1;");;);;);;);
if(arg!= null)
{{
input.value = arg;
}
}
</script>
2。HTMファイルのコード(SearchItemc.htm):
<html>
<head>
<スクリプト言語= "javascript">
関数Resolveurs()
{{
var frm = window.frames [0];
frm.location = location.toString()。
}
</script>
</head>
<body>
<table align = "left" cellpadding = "0" cellspacing = "0" id = "table1">
<tr>
<td値= "top"> <iframe id = "ifmain"> </iframe> </td>
</tr>
</table>
</body>
</html>
3.ASPXファイル(SearchItemc.aspx)コード:
request.querystring ["sysid"];