首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

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

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

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

这样写可以吗

热点排行