2014-03-13 171 views
1
Page.ClientScript.RegisterStartupScript(Page.GetType(), null, "window.open('bill_reciept.aspx?Parameter=" + txt_billNo.Text + "', '_newtab')", true); 

这是标签打开的网页新选项卡并刷新当前页面

Page.ClientScript.RegisterStartupScript(Page.GetType(), null, "window.open('customerReg.aspx', '_self')", true); 

希望刷新这个古老的页面新页面

新页面在标签越来越打开,但旧的页面无法刷新或在同一个标​​签的新页面中打开

+0

第二次你可以使用location.reload – Rex

回答

1

这样做下面...

呼叫像下面的JavaScript方法...

var windowObjectReference; 

function openRequestedPopup() { 
    windowObjectReference = window.open("CMS_1.aspx", 
      "DescriptiveWindowName", 
      "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes"); 
} 

这将在新标签中打开页面,并在函数结束时,您需要重新加载位置....

相关问题