ScriptManager.RegisterStartupScript有什么问题?

时间:2010-02-19 04:19:00

标签: asp.net

ScriptManager.RegisterStartupScript(this, this.GetType(), "redirectScript", "window.location.href='Thankyou.aspx?'Service=" + hidService.Value  + ";",true);

获得错误:预期;

请帮帮我

1 个答案:

答案 0 :(得分:0)

我认为你的报价有些混乱,试试:

ScriptManager.RegisterStartupScript(this, this.GetType(), "redirectScript",
    "window.location.href='Thankyou.aspx?Service=" + hidService.Value + "';", true);

您的Service=之后只有一条报价,它应该在;之前。