在页面跳转的时候自动弹出对话框 清高手帮忙
 我给一百分啊

解决方案 »

  1.   

    Reponse.Write("<script>alert(123);window.location.href='webform2.aspx';</script>");
      

  2.   

    把弹出对话框写在unload事件里面貌似也可以吧
    <body unload="ssss()">
    function ssss()
    {
     alert(123);
    }
      

  3.   

    页面A 跳转到 页面B
    A.aspx
    =======
    private void Page_Load(object sender, System.EventArgs e)
    {
       // 在此处放置用户代码以初始化页面
       btn_go.Attributes.Add("onclick","return confirm('是否跳转到B页面?')");
    }private void btn_add_Click(object sender, System.EventArgs e)
    {
       Response.Redirect("B.aspx");//实现跳转
    }
      

  4.   

    应该是
    private void btn_go_Click(object sender, System.EventArgs e)
      

  5.   

    Eddie005(♂) №.零零伍 (♂) ( ) 信誉:121    Blog   加为好友  2006-12-6 17:10:24  得分: 0  
     
     
       
    Reponse.Write("<script>alert(123);window.location.href='webform2.aspx';</script>");  
     
    ---------
    OK!