随笔分类 -  .net

摘要:包含await表达式/语句的方法,为异步方法,方法声明必须标记为async。(反之不一定,async标记的方法,可以没有await表达式,那就是正常的方法,编译器只是警告而已) 作用和机制: await 用来指定(当前异步方法的)暂停点。 await 运算符通知编译器异步方法:在等待的异步过程(aw 阅读全文
posted @ 2021-01-14 16:12 悠哉大斌 阅读(1217) 评论(0) 推荐(0) 编辑
摘要:from:http://odetocode.com/blogs/scott/archive/2011/01/17/http-modules-versus-asp-net-mvc-action-filters.aspxMonday, January 17, 2011ASP.NET MVC hasact... 阅读全文
posted @ 2015-12-02 19:51 悠哉大斌 阅读(299) 评论(0) 推荐(0) 编辑
摘要:Friday, July 17, 2015 1:43 PMEvery time I need to work with the contents of text-based files in an ASP.NET application I invariably start off thinking... 阅读全文
posted @ 2015-09-16 15:49 悠哉大斌 阅读(180) 评论(0) 推荐(0) 编辑
摘要:BySteve SmithJune 23, 2015ASP.NET 5differs from previous versions of ASP.NET in many ways. Gone is the default ASP.NET event life cycle, and along wit... 阅读全文
posted @ 2015-07-08 15:40 悠哉大斌 阅读(181) 评论(0) 推荐(0) 编辑
摘要:It has become common practice to perform tasks during an ASP.NET applications start up process. These tasks may include registering routes, configurin... 阅读全文
posted @ 2015-07-08 15:32 悠哉大斌 阅读(258) 评论(0) 推荐(0) 编辑
摘要:June 19, 2015This too is one of the boring "factual" posts. Sorry Lachlan.I never know which .net uri encoding (or urlencoding?) method to use in any ... 阅读全文
posted @ 2015-07-08 15:27 悠哉大斌 阅读(194) 评论(0) 推荐(0) 编辑
摘要:from:http://www.mikesdotnetting.com/article/258/usage-of-the-at-sign-in-asp-netThursday, January 22, 2015 1:54 PMThe number of places where you might ... 阅读全文
posted @ 2015-07-03 19:02 悠哉大斌 阅读(286) 评论(0) 推荐(0) 编辑
摘要:from: http://www.mikesdotnetting.com/article/173/the-difference-between-helpers-and-functions-in-webmatrix Sunday, March 20, 2011 9:42 AM This is anot 阅读全文
posted @ 2015-07-03 18:20 悠哉大斌 阅读(139) 评论(0) 推荐(0) 编辑
摘要:ASPX语法比较简单,所以ASPX解析器几乎完全是通过正则表达式来实现的。Razor解析器与ASPX解析器之间有很大不同,它实际上分为三个独立的组件: 1)理解基础HTML语法的标记解析器; 2)理解基础C#或者VB语法的代码解析器; 3)理解标记和代码如何混合的中央控制器 所以Razor解... 阅读全文
posted @ 2015-07-03 17:35 悠哉大斌 阅读(564) 评论(0) 推荐(0) 编辑
摘要:Friday, May 13, 2011ASP.NET MVC 3 supports a new view-engine option called “Razor” (in addition to continuing to support/enhance the existing .aspx vi... 阅读全文
posted @ 2015-07-03 15:54 悠哉大斌 阅读(153) 评论(0) 推荐(0) 编辑
摘要:Customizing Site-Wide Behavior for ASP.NET Web Pages (Razor) SitesByTom FitzMacken|February 17, 2014This article explains how to make site-side settin... 阅读全文
posted @ 2015-05-21 19:57 悠哉大斌 阅读(358) 评论(0) 推荐(0) 编辑
摘要:ByAbhishek Jaiswal :)onMar 21, 2015In this article we learn about Razor Engine Syntax vs Web Form in MVC ASP.NET.Quick ViewThis article is all about t... 阅读全文
posted @ 2015-05-21 18:30 悠哉大斌 阅读(264) 评论(0) 推荐(0) 编辑
摘要:Application state is a data repository available to all classes in an ASP.NET application. Application state is stored in memory on the server and i... 阅读全文
posted @ 2015-05-21 17:28 悠哉大斌 阅读(144) 评论(0) 推荐(0) 编辑
摘要:Razor语法的分类@using:引入命名空间@model:声明强类型的数据model类型@section:定义要实现母版页的节的信息@RenderBody():当创建基于页面的布局时,视图的内容会和布局页合并,而新创建的视图的内容会通过布局页面的@RenderBody方法呈现在标签之间。@Rend... 阅读全文
posted @ 2015-01-21 21:06 悠哉大斌 阅读(240) 评论(0) 推荐(0) 编辑
摘要:[来源]达内[编辑]达内[时间]2012-09-14在Asp.net4和4.5中,新增了WebPages Framework,编写页面代码使用了新的Razor语法,代码更加的简洁和符合Web标准在Asp.net4和4.5中,新增了WebPages Framework,编写页面代码使用了新的Razor... 阅读全文
posted @ 2014-12-29 16:34 悠哉大斌 阅读(266) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示