只要 修改 web.config 在 system.web 下增加以下的設定, 此範例是將 輸入 ReURL 的位址取代 test.aspx
<system.web>
<urlMappings enabled="true">
<add url="~/ReURL" mappedUrl="~/test.aspx"/>
</urlMappings>
</system.web>
參考:
<system.web>
<urlMappings enabled="true">
<add url="~/ReURL" mappedUrl="~/test.aspx"/>
</urlMappings>
</system.web>
function openNewWindow()
{
window.open('TEST.html', '_self' );
}
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=big5">
<title>Test Margin</title>
<style>
<!--
@page Section1 {size: 21.59cm 27.94cm;
mso-page-orientation:landscape;
margin: 1.5cm 1.48cm 1cm 1.5cm;
mso-header-margin:42.55pt;
mso-footer-margin:49.6pt;
mso-paper-source:0;
mso-header:h1;
mso-footer:f1;
layout-grid:18.0pt;}
div.Section1 {page:Section1;}
</style>
</head>
<body>
<div class=Section1 style='layout-grid:18.0pt'>
Test Margin
</div>
</body>
</html>