ScriptManager.RegisterStartupScript(this, this.GetType(), "redirectScript", "window.location.href='Thankyou.aspx?'Service=" + hidService.Value + ";",true);
Getting error: Expected ;
Plea开发者_JAVA技巧se help me
I think your quotes are a little messed up, try:
ScriptManager.RegisterStartupScript(this, this.GetType(), "redirectScript",
"window.location.href='Thankyou.aspx?Service=" + hidService.Value + "';", true);
You had a single quote after your Service=
and it should have been just before your ;
.
精彩评论