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);我这样加了个参数 就不执行这行了 高手们看看
{
alert('调整成功');
location.href = '../Bonus.aspx?cusID=' + Pram1;
}ClientScript.RegisterStartupScript(this.GetType(), "alertinfo", "Success('" + LbCustId.Text + "')", true);
ClientScript.RegisterStartupScript(this.GetType(), "alertinfo", "alert('调整成功');location.href = '../Bonus.aspx?cusID=" + LbCustId.Text+"'", true);
待传递参数写到了单引号外面
ClientScript.RegisterStartupScript(this.GetType(), "alertinfo", "alert('调整成功');location.href = '../Bonus.aspx?cusID=" + LbCustId.Text + "'", true);