日期:2014-05-17  浏览次数:20378 次

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();

这样写可以吗