我想在确认警报消息后显示警报消息,我想显示另一个页面。该页面的URL为url =“ var params = ['height ='+ screen.height,'width ='+ screen。 width,'fullscreen = yes']。join(','); var popup = window.open('ReportViewer.aspx?Option = DeliveryOrder1&DONO = HQ1700000149&Report = SalesInvoice&CustomerName = PUAN + YATI&Address1 = NO 1179 PERSIARAN PUTERI 3/2 DSN,&Address2 = PUTERI 3/2 TAMAN CHANDAN PUTERI,吉隆坡,堪培拉和国家/地区=马来西亚&电话=&ZipCode = 33000&subtotal = 14.00&totalvalue = 14.00&gst = 0.00&TotalDiscount = 0.00&NetTotal = 14.00','_blank',params); popup.moveTo(0,0) ;“
我的代码:
protected void btn_CreatePo_Click(object sender, EventArgs e)
{
if (result == "True")
{
string url = btn_poprint();//edit23/06
ClientScript.RegisterStartupScript(this.GetType(), "Alert", "Alert_CodeBehind(' Delivery Order " + txt_PrintDO.Text + " is Successfully Converted to PO ');window.location='"+ url +"' ", true);
return;
}
else
{
// ScriptManager.RegisterStartupScript(this, this.GetType(), "Hide", "<script> document.getElementById('li_ListView').style.display = 'block';</script>", true);
ScriptManager.RegisterStartupScript(this.Up_Detail, typeof(string), "Alert", "Alert_CodeBehind('Error in Converting ')", true);
ClientScript.RegisterStartupScript(GetType(), "test", "<script>document.getElementById('a14').className = 'active_tab'</script>");
return;
}
}
我想在警报消息确认将显示给定的URL页面后显示警报消息。