Javascript 是否在使用asp.net显示警报消息后重定向到弹出窗口?

Javascript 是否在使用asp.net显示警报消息后重定向到弹出窗口?,javascript,c#,jquery,asp.net,Javascript,C#,Jquery,Asp.net,我想在警报消息确认后显示警报消息,我想显示另一个页面。该页面url为url=“var params=['height='+screen.height,'width='+screen.width,'fullscreen=yes']。join(',');var popup=window.open('ReportViewer.aspx?Option=DeliveryOrder1&DONO=HQ170000149&Report=SalesInvoice&CustomerName=PUAN+YATI&Ad

我想在警报消息确认后显示警报消息,我想显示另一个页面。该页面url为url=“var params=['height='+screen.height,'width='+screen.width,'fullscreen=yes']。join(',');var popup=window.open('ReportViewer.aspx?Option=DeliveryOrder1&DONO=HQ170000149&Report=SalesInvoice&CustomerName=PUAN+YATI&Address1=NO 1179 Persaran PUTERI 3/2 DSN,&Address2=PUTERI 3/2 TAMAN CHANDAN PUTERI,KUALA KANSAR PERA&Country=马来西亚&Phone=&ZipCode=33000&subtotal=14.00&totalvalue=14.00&gst=0.00&Total折扣=0.00&NetTotal=14.00',“_blank”,参数);弹出。移动到(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;
                                }

}
protectedvoidbtn\u CreatePo\u单击(对象发送方,事件参数e)
{    
如果(结果=“真”)
{
字符串url=btn_poprint();//edit23/06
ClientScript.RegisterStartupScript(this.GetType(),“Alert”,“Alert\u CodeBehind('Delivery Order“+txt\u PrintDO.Text+”已成功转换为PO');window.location='“+url+”,true);
返回;
}
其他的
{
//ScriptManager.RegisterStartupScript(this,this.GetType(),“Hide”,“document.getElementById('li_ListView')。style.display='block';”,true);
ScriptManager.RegisterStartupScript(this.Up_详细信息,typeof(字符串),“Alert”,“Alert_CodeBehind('Error in Converting')”,true);
ClientScript.RegisterStartupScript(GetType(),“test”,“document.getElementById('a14')。className='active_tab');
返回;
}
}

在警报消息确认将显示给定的url页面后,我想显示警报消息。

您面临的确切问题是什么,请发布所需的错误详细信息。@Ipsit Gaur我正在编辑我的帖子。警报不会显示,页面也不会重定向。我只是不知道问题出在哪里。