如何在try catch中使用Response.End()

摘要: 在调用Response.End()时,会执行Thread.CurrentThread.Abort()操作。如果将Response.End()放在try...catch中,catch会捕捉Thread.CurrentThread.Abort()产生的异常System.Threading.ThreadA... 阅读全文
posted @ 2015-11-30 11:31 YAO000 阅读(370) 评论(0) 推荐(0)

UrlHelperDemo,AjaxHelperDemo

摘要: @{ Layout = null;} Index //1.0 根据路由规则生成url 跳转到首页 @Url.Encode("http://www.baidu.com?name=八戒") ... 阅读全文
posted @ 2015-08-31 22:39 YAO000 阅读(98) 评论(0) 推荐(0)

MVC之htmlhelper

摘要: View@model 知识点.Models.Pig@{ Layout = null;}@using 知识点 Edit @* *@生成表单的方式 @using (Html.BeginForm("... 阅读全文
posted @ 2015-08-31 22:34 YAO000 阅读(112) 评论(0) 推荐(0)