读书人

mvc中为什么执行完Response.End() 后

发布时间: 2012-06-01 16:46:36 作者: rapoo

mvc中为什么执行完Response.End() 后,程序还会继续执行?
mvc中为什么执行完Response.End() 后,程序还会继续执行?

[解决办法]

探讨
比如:有多个条件
if (1==1)
{
Response.end();
return View();
}
if (2==2)
{
Response.end();
return View();
}
中间又是一大段程序
sessioin["a"]=1;
return View();

这样写可以吗

读书人网 >asp.net

热点推荐