我需要使用页面上的现有数据填充一个新窗口(没有菜单,没有地址栏)。
为此,我正在使用 java 脚本函数。
function popup() {
window.open("../AcknowledgeStatements/OutStandingAckInPdf", '', 'scrollbars=yes,width=740,height=600,resizable=yes');
}
<input name="cmdButton" id="cmdPrint" type="button" class="button" value="Print" onclick="popup()"/>
如何将此页面中的模型和 TempData/ViewData 传递到弹出窗口?有人可以帮我吗?