上一页 1 ··· 8 9 10 11 12
摘要: 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 悠哉大斌 阅读(287) 评论(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 悠哉大斌 阅读(230) 评论(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 悠哉大斌 阅读(315) 评论(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 悠哉大斌 阅读(169) 评论(0) 推荐(0)
摘要: from:http://www.cnblogs.com/jiagoushi/p/3904995.htmlasp.net Razor 视图具有.cshtml后缀,可以轻松的实现c#代码和html标签的切换,大大提升了我们的开发效率。但是Razor语法还是有一些棉花糖值得我们了解一下,可以更加强劲的提升... 阅读全文
posted @ 2015-07-03 17:41 悠哉大斌 阅读(1571) 评论(0) 推荐(0)
摘要: ASPX语法比较简单,所以ASPX解析器几乎完全是通过正则表达式来实现的。Razor解析器与ASPX解析器之间有很大不同,它实际上分为三个独立的组件: 1)理解基础HTML语法的标记解析器; 2)理解基础C#或者VB语法的代码解析器; 3)理解标记和代码如何混合的中央控制器 所以Razor解... 阅读全文
posted @ 2015-07-03 17:35 悠哉大斌 阅读(592) 评论(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 悠哉大斌 阅读(179) 评论(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 悠哉大斌 阅读(397) 评论(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 悠哉大斌 阅读(293) 评论(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 悠哉大斌 阅读(172) 评论(0) 推荐(0)
摘要: This article lists some frequently asked questions about ASP.NET Web Pages (Razor) and WebMatrix 阅读全文
posted @ 2015-04-27 19:49 悠哉大斌 阅读(346) 评论(0) 推荐(0)
摘要: Customizing Site-Wide Behavior for ASP.NET Web Pages (Razor) SitesByTom FitzMacken|February 17, 2014PrintThis article explains how to make site-side s... 阅读全文
posted @ 2015-04-27 19:27 悠哉大斌 阅读(586) 评论(0) 推荐(0)
摘要: If you want to run a site using Web Pages version 1 (instead of the default, as in the previous point), you can configure the site to do that. If your... 阅读全文
posted @ 2015-02-04 16:32 悠哉大斌 阅读(175) 评论(0) 推荐(0)
摘要: Razor语法的分类@using:引入命名空间@model:声明强类型的数据model类型@section:定义要实现母版页的节的信息@RenderBody():当创建基于页面的布局时,视图的内容会和布局页合并,而新创建的视图的内容会通过布局页面的@RenderBody方法呈现在标签之间。@Rend... 阅读全文
posted @ 2015-01-21 21:06 悠哉大斌 阅读(273) 评论(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 悠哉大斌 阅读(288) 评论(0) 推荐(0)
摘要: JSON(JavaScript Object Notation) 是JavaScript编程语言的一个子集。正因JSON是JavaScript的一个子集,所以它可清晰的运用于此语言中。JavaScript对象与JSON字符串的相互转换eval函数 JSON文本转换为对象为了将JSON文本转换为对象,可以使用eval函数。eval函数调用JavaScript编辑器。由于JSON是JavaScript的子集,因此编译器将正确的解析文本并产生对象结构。文本必须括在括号中避免产生JavaScript的语法歧义。var obj = eval('(' + JSONTest + ') 阅读全文
posted @ 2012-03-27 11:57 悠哉大斌 阅读(315) 评论(0) 推荐(0)
摘要: <html><head><script type="text/javascript"> //兼容性1,document.body.scrollTop 和 document.documentElement.scrollTop 兼容性2. style.top的值firefox需要加“px” , ie兼容此px ,无需另外加判断 var stmnBASE = 840; //起始顶部间距(原始值) var stmnActivateSpeed = 1000; // var stmnScrollSpeed = 10; // var stmnTimer 阅读全文
posted @ 2012-03-26 15:22 悠哉大斌 阅读(1392) 评论(0) 推荐(0)
摘要: IE下,keyCode:对于keypress事件,表示按下按键的Unicode字符;对于keydown/keyup事件,表示按下按键的数字代码。无charCode属性。DOM标准下,keyCode:表示按下按键的数字代码。charCode:按下按键的Unicode字符。Netscape/Firefox/Opera 下,也可使用 event.which,表示按下按键的数字代码。如果你想获取用户实际敲击的按钮,用keydown事件来获取事件对象,并获取keyCode值,这在所有浏览器都行的通。<script type="text/javascript">functi 阅读全文
posted @ 2012-03-15 22:17 悠哉大斌 阅读(207) 评论(0) 推荐(0)
摘要: <script type="text/javascript"> //功能:停止事件冒泡 function stopBubble(e) { //如果提供了事件对象,则这是一个非IE浏览器 if (e && e.stopPropagation) //因此它支持W3C的stopPropagation()方法 e.stopPropagation(); else //否则,我们需要使用IE的方式来取消事件冒泡 ... 阅读全文
posted @ 2012-03-06 17:09 悠哉大斌 阅读(209) 评论(0) 推荐(0)
摘要: 利用excel的activeX控件(本地需要安装excel)html中有如下table( id='GridView1')代码参考:<script language="javascript"> function previewInExcel() { window.clipboardData.setData("Text", document.all('GridView1').outerHTML); try { var ExApp = new ActiveXObject("Excel.Application 阅读全文
posted @ 2012-03-02 19:22 悠哉大斌 阅读(306) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12