ScriptManager.RegisterStartupScript(this, this.GetType(), "redirectScript", "window.location.href='Thankyou.aspx?'Service=" + hidService.Value + ";",true);
获得错误:预期;
请帮帮我
答案 0 :(得分:0)
我认为你的报价有些混乱,试试:
ScriptManager.RegisterStartupScript(this, this.GetType(), "redirectScript",
"window.location.href='Thankyou.aspx?Service=" + hidService.Value + "';", true);
您的Service=
之后只有一条报价,它应该在;
之前。