用户代码未处理Exception
try{
LiuYanMananger.AddLiuYan(l);
Response.Redirect("LiuYanChengGong.aspx");
}
catch (Exception ex)
{
throw new Exception(ex.Message);//用户代码未处理Exception (正在中止线程) }
}
}
--------------------编程问答-------------------- Response.Redirect会引发线程终止异常的 --------------------编程问答-------------------- throw new Exception(ex.Message);
你又丢出来,当然有异常,修改为
Response.WriteLine(ex.Message); --------------------编程问答-------------------- 你把得到的异常抛出来他果断会报错啊
把错误信息直接alert试试
Response.Write("<scrpt>alert('"+ex.Message+"');</scrpt>"); --------------------编程问答-------------------- Response.Write("<scrpt>alert('"+ex.Message+"');</scrpt>");
补充:.NET技术 , ASP.NET