2014-03-13 53 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"); 
} 

這將在新標籤中打開頁面,並在函數結束時,您需要重新加載位置....

相關問題