ClientScript.RegisterStartupScript(this.GetType(), "alertinfo", "alert('调整成功');location.href = '../Bonus.aspx'", true);这样 弹出对话框后 跳转没问题 但是我加了一个参数后  整条这个语句就没用了    ClientScript.RegisterStartupScript(this.GetType(), "alertinfo", "alert('调整成功');location.href = '../Bonus.aspx?cusID='" + LbCustId.Text, true);我这样加了个参数  就不执行这行了 高手们看看

解决方案 »

  1.   

    function Success(Pram1)
    {
        alert('调整成功');
        location.href = '../Bonus.aspx?cusID=' + Pram1;
    }ClientScript.RegisterStartupScript(this.GetType(), "alertinfo", "Success('" + LbCustId.Text + "')", true); 
      

  2.   


    ClientScript.RegisterStartupScript(this.GetType(), "alertinfo", "alert('调整成功');location.href = '../Bonus.aspx?cusID=" + LbCustId.Text+"'", true); 
      

  3.   

    字符串构造错了
    待传递参数写到了单引号外面
    ClientScript.RegisterStartupScript(this.GetType(), "alertinfo", "alert('调整成功');location.href = '../Bonus.aspx?cusID=" + LbCustId.Text + "'", true);