日期:2014-05-17 浏览次数:20451 次
var file_path = window.showModalDialog("../a.htm", null, "dialogWidth=450px;dialogHeight=150px;center=yes;status=no");
<form id="form1" method="post" enctype="multipart/form-data" action="b.aspx">
<input id="testId" type="file" name="testName" />
<input id="testSubmit" type="submit" value="上传" />
</form>
<body>
<form id="form1" method="post" enctype="multipart/form-data" action="b.aspx" target="result">
<input id="testId" type="file" name="testName" />
<input id="testSubmit" type="submit" value="上传" />
</form>
<iframe id="result" style="display:none"></iframe>
</body>
Response.Clear();
Response.Write(@"<script>
var win = window.parent;
win.returnValue = 'xxxxxx';
win.close();
</script>");
Response.End();