抛出我有这样的代码异常的页面重定向在asp.net
protected void Button_Click(object sender, EventArgs e)
{
try
{
// some code
con.Open();
string result = command.ExecuteScalar().ToString();
if (result != string.Empty)
{
// some code
Response.Redirect("Default.aspx");
}
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
finally
{
con.Close();
}
它提供了从Response.Redirect("Default.aspx");
前的异常:线程已被中止。
任何想法为什么?
感谢名单
这似乎是一个重复的问题结帐[这](http://stackoverflow.com/questions/2777105/response-redirect-causes-system-threading-threadabortexception) – 2013-03-14 16:28:58