0
我打開了一個彈出窗口,並且我想打開另一個彈出窗口,從現有的彈出窗口中彈出。但是當我點擊圖像按鈕時,沒有任何反應。如何在彈出窗口中打開另一個彈出窗口?
protected void ViewImageButton_Click(object sender, ImageClickEventArgs e)
{
ImageButton ViewTicketImageBtn = sender as ImageButton;
GridViewRow GridViewRow = (GridViewRow)ViewTicketImageBtn.NamingContainer;
try
{
//some code here
this.ClientScript.RegisterClientScriptBlock(this.GetType(), "clientScript", "<script type=\"text/javascript\">viewTicketDetails();</script>");
}
}
這是我在Site.Master中的代碼。對於viewTicketDetails()
var win;
function viewTicketDetails() {
win = window.open('ViewTicketDetailsPage.aspx'
, 'TicketDetails'
, 'width=1040, height=600, innerHeight=600, location=no, menubar=no, status=no, titlebar=no, scrollbars=yes, left=0'
, '_blank');
win.focus();
};