• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Joan
博客园    首页    新随笔    联系   管理    订阅  订阅
2010年12月8日
关于Action返回结果类型的事儿(下)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Mvc.Ajax; using System.IO; namespace MVC.Controllers { /// <summary> /// Controller 类必须以字符串 "Controller" 做类名称的结尾,字符串 Controller 之前的字符串为 Controller 的名称,类中的方法名为 A 阅读全文
posted @ 2010-12-08 13:42 Joans 阅读(1530) 评论(1) 推荐(0)
ASP.NET MVC – 关于Action返回结果类型的事儿(上)
摘要: Action的返回值类型到底有几个?咱们来数数看。ASP.NET MVC 1.0 目前一共提供了以下十几种Action返回结果类型:1. ActionResult(base)2. ContentResult3. EmptyResult4. HttpUnauthorizedResult5. JavaScriptResult6. JsonResult7. FileResult (base)8. FileContentResult9. FilePathResult10. FileStreamResult11. RedirectResult12. RedirectToRouteResult13. Vi 阅读全文
posted @ 2010-12-08 13:32 Joans 阅读(886) 评论(1) 推荐(1)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3