,这response.redirect是怎么回事
救命啊,这response.redirect是咋回事啊C# code异常:由于代码已经过优化或者本机框架位于调用堆栈之上,无法
救命啊,这response.redirect是咋回事啊
C# code异常:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值代码 protected void imgBtnRegister_Click(object sender, ImageClickEventArgs e) { try { if (Request.QueryString["CPJC_UserName"] == null) { Response.Redirect("SuccessMes.aspx?Email=" + this.txtEmail.Text.Trim()); } else { //执行其他 } } catch (Exception ex) { Response.Write("请仔细检查后在注册,系统繁忙,请稍后重试。。。"); } }我断点调试,报出这样的错误!求救啊!
[解决办法]Response.Redirect("SuccessMes.aspx?Email=" + this.txtEmail.Text.Trim(),false);
这样就行了!
[解决办法] Response.Redirect("SuccessMes.aspx?Email="+this.txtEmail.Text.Trim()+"");
Page.ClientScript.RegisterStartupScript(this.GetType(), "", "window.locationhref='SuccessMes.aspx?Email=" + this.txtEmail.Text.Trim() + "'");