上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: The FileReader InterfaceThe FileReader interface provides a number of methods that can be used to read either File or Blob objects. These methods are all asynchronous which means that your program will not stall whilst a file is being read. This is particularly useful when dealing with large files.T 阅读全文
posted @ 2014-03-18 18:56 happyu0223 阅读(854) 评论(0) 推荐(0) 编辑
摘要: issue:我使用的环境是Vs2012 , 创建了MVC4的工程,然后在工程里面Webconfig, 添加了访问限制 设置所有访问都拒绝匿名访问,只有授权用户才能访问,非授权的访问会跳转到登录页面 ~/Account/Login然后问题是,我想加一个公共的Controler,是给非授权的用户访问,我给那个Controler加上[AllowAnonymous] 属性,允许匿名,但是很奇怪,所有访问这个匿名的Controler还是会跳转到Login,除非你登录了授权,才可以打开这个匿名的控制器,这个[AllowAnonymous]完全不起作用。soluti... 阅读全文
posted @ 2014-03-18 11:13 happyu0223 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 思路: 1 需要添加 AreaRouteHeler,便于创建控制器分组信息。 2添加自定义视图引擎,为了控制器能够导航到各Area中的页面。步骤: 1. 添加AreaRouteHeler。 [c-sharp] view plaincopyprint?//////控件器分组帮助类///publicclassAreaRouteHeler{//////创建控制器域//////路由集合///控制器域///控制器NameSpace///路由参数(可多个)publicstaticvoidCreateArea(thisRouteCollectionrouteCollection,stringareaNa.. 阅读全文
posted @ 2014-03-17 15:55 happyu0223 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1)定义接口。2)定义公共变量(必须在js中定义)。3)引用头文件。4)同时引用头文件和实现头文件的js文件(TS可以删除)到页面中,完整代码如下:【MyClass.js】:varMyModule; (function(MyModule){ varMyClass=(function(){ functionMyClass(){ this.msg=null; } MyClass.prototype.Calling=function(){ alert(this.msg); }; returnMyClass; })(); MyModule.MyClass=MyClass; })(MyModule||( 阅读全文
posted @ 2014-03-12 14:01 happyu0223 阅读(960) 评论(0) 推荐(0) 编辑
摘要: This post relates how to Copy/Clone custom object in C# (Deep and Shallow Clone).In this example I will be having a base class that all my custom object will be inheriting from.Updates: After quiet some research on the subject i recently found some interesting articles on this subject and wanted to 阅读全文
posted @ 2014-03-12 11:25 happyu0223 阅读(368) 评论(0) 推荐(0) 编辑
摘要: HeaderCell=newTableCell();HeaderCell.Text="Employee";HeaderCell.ColumnSpan=2;HeaderGridRow.Cells.Add(HeaderCell);please check out the link for more information:How to add Header and Subheader in Gridviewhttp://www.aspsnippets.com/Articles/Merge-Merging-GridView-Header-Columns-Cells-by-addi 阅读全文
posted @ 2014-03-11 15:28 happyu0223 阅读(269) 评论(0) 推荐(0) 编辑
摘要: First of all verify Server side.Rename webmethods.aspx to webmethods.asmx.Verify that you placed Inside of \ and a httpHandlers for asmx extension (ScriptHandlerFactory) also exist in the config:Verify that [ScriptService] attribute ([System.Web.Script.Services.ScriptService] if you like full names) 阅读全文
posted @ 2014-03-10 17:40 happyu0223 阅读(223) 评论(0) 推荐(0) 编辑
摘要: In this article we are going to see how to serialize and deserializean object as binary data using the binary formatter.Step 1: Used Namespaceusing System; using System.Collections; using System.IO; using System.Runtime.Serialization.Formatters.Binary; Step 2: Usage protected void Page_Load(object . 阅读全文
posted @ 2014-03-10 11:45 happyu0223 阅读(177) 评论(0) 推荐(0) 编辑
摘要: So for example the goal was to have a site: www.site.com expose a www.site.com/company1 and a www.site.com/company2 and have the content from “www.company1.com” served for the first one and “www.company2.com” served in the second one. Furthermore we would like to have the responses cached in the ser 阅读全文
posted @ 2014-03-10 11:23 happyu0223 阅读(695) 评论(0) 推荐(0) 编辑
摘要: 比较多个不同的xml 文件内容, 找出不同的节点或相同的节点Compare xml files using C#LINQhttp://deepumi.wordpress.com/2010/03/02/compare-xml-files-using-csharp-linq/Compare two xml and print the difference using LINQ 阅读全文
posted @ 2014-03-07 17:32 happyu0223 阅读(236) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页