17,740
社区成员
发帖
与我相关
我的任务
分享
异常:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值
代码
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("请仔细检查后在注册,系统繁忙,请稍后重试。。。");
}
}
我断点调试,报出这样的错误!求救啊!
protected void imgBtnRegister_Click(object sender, ImageClickEventArgs e)
{
try
{
if (!string.IsNullOrEmpty(Request.QueryString["CPJC_UserName"]))
{
Response.Redirect("SuccessMes.aspx?Email='" + this.txtEmail.Text.Trim()+"'");
}
else
{
//执行其他
}
}
catch (Exception ex)
{
Response.Write("请仔细检查后在注册,系统繁忙,请稍后重试。。。");
}
}
protected void imgBtnRegister_Click(object sender, ImageClickEventArgs e)
{
try
{
if (!string.IsNullOrEmpty(Request.QueryString["CPJC_UserName"]))
{
Response.Redirect("SuccessMes.aspx?Email=" + this.txtEmail.Text.Trim());
}
else
{
//执行其他
}
}
catch (Exception ex)
{
Response.Write("请仔细检查后在注册,系统繁忙,请稍后重试。。。");
}
}