netcore 上传大文件需要注意的地方总结
    
            
摘要:https://www.cnblogs.com/ydchw/p/10840198.html 1. 超时问题(timeout) 这个和NetCore无关,是ajax请求忘记设置timeout参数值,在网页端加上即可。 2. Request body too large 错误 Post的body大概超过
        
阅读全文
                posted @ 
2020-07-15 10:53 
西湖浪子
        
阅读(2515) 
         
        推荐(0)     
             
            
            
    C# 跟进文件流分析文件后缀
    
            
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Syste
        
阅读全文
                posted @ 
2020-03-17 17:34 
西湖浪子
        
阅读(494) 
         
        推荐(0)     
             
            
            
    Framework4 task
    
            
摘要:创建和执行任务 Task 可以多种方式创建实例。 最常用的方法,它位于开头 .NET Framework 4.5, ,是调用静态 Run 方法。 Run 方法提供了简单的方法来启动任务使用默认值,并且无需额外的参数。 下面的示例使用 Run(Action) 方法来启动循环,然后显示循环迭代数的任务︰
        
阅读全文
                posted @ 
2017-08-15 14:02 
西湖浪子
        
阅读(345) 
         
        推荐(0)     
             
            
            
    c# Rsa xml pem 校验
    
            
摘要:using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Security.Cryptography;using System.Text; namespace test{ 
        
阅读全文
                posted @ 
2017-05-02 11:24 
西湖浪子
        
阅读(1283) 
         
        推荐(0)     
             
            
            
    RSA Pem转XML
    
            
摘要:http://blog.csdn.net/jiayanhui2877/article/details/47187077
        
阅读全文
                posted @ 
2017-04-26 15:28 
西湖浪子
        
阅读(663) 
         
        推荐(0)     
             
            
            
    nopi 2003 2007
    
            
摘要:https://github.com/tonyqus/npoihttp://npoi.codeplex.com/releasesThis project is the .NET version of POI Java project. With NPOI, you can read/write Of...
        
阅读全文
                posted @ 
2015-10-22 19:11 
西湖浪子
        
阅读(129) 
         
        推荐(0)     
             
            
            
    线程安全的单例模式
    
            
摘要:using System.Net;using Enyim.Caching;using Enyim.Caching.Configuration;using Enyim.Caching.Memcached;namespace OCS.Memcached{ public sealed class M...
        
阅读全文
                posted @ 
2015-10-10 10:39 
西湖浪子
        
阅读(194) 
         
        推荐(0)     
             
            
            
    Cache缓存的遍历与清除所有缓存
    
            
摘要:遍历缓存数据 //取得Cache的枚举 IDictionaryEnumerator CacheEnum = Cache.GetEnumerator(); while (CacheEnum.MoveNext()) { //缓...
        
阅读全文
                posted @ 
2015-08-03 12:22 
西湖浪子
        
阅读(3832) 
         
        推荐(0)     
             
            
            
    C#数据绑定控件中的DataSource属性浅谈
    
            
摘要:使用该属性指定用来填充Repeater控件的数据源。DataSource可以是任何System.Collections.IEnumerable对象, 如用于访问数据库的System.Data.DataView、System.Collections.ArrayList、System.Collectio...
        
阅读全文
                posted @ 
2015-07-17 17:29 
西湖浪子
        
阅读(8839) 
         
        推荐(0)     
             
            
            
    中国所有城市json,名称,拼音+邮编
    
            
摘要:var chineseCities = [{label:"北京Beijing010",name:"北京",pinyin:"Beijing",zip:"010"},{label:"重庆Chongqing023",name:"重庆",pinyin:"Chongqing",zip:"023"},{labe...
        
阅读全文
                posted @ 
2015-07-16 21:52 
西湖浪子
        
阅读(8329) 
         
        推荐(1)     
             
            
            
    5个很好用的.net 分析工具
    
            
摘要:编者按】作者 Senthil Kumar曾在自家的网站. NET试验过不少分析工具,下面这些是他试用之后的收集:1. 网站内App的性能和内存分析器JetBrains dotTrace来自JetBrain,是针对网站内App的性能和内存分析器,能有效剖析目标应用的性能,很快找到NET1.0到4.5版...
        
阅读全文
                posted @ 
2015-06-14 23:24 
西湖浪子
        
阅读(370) 
         
        推荐(0)     
             
            
            
    Xml CDATA 序列化
    
            
摘要:namespace Test{ using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; using Test.Share...
        
阅读全文
                posted @ 
2015-05-15 19:13 
西湖浪子
        
阅读(519) 
         
        推荐(0)     
             
            
            
    Session 中的InProc模式 与 StateServer模式
    
            
摘要:开发asp.net应用时,修改web.config中的SessionState节点。stateserver模式:InProc模式优点:获取session状态的速度快,session状态直接存储在iis的进程中。缺点:易丢失,经常需要重新登录StateServer模式优点:session状态单独存储在...
        
阅读全文
                posted @ 
2015-05-06 22:59 
西湖浪子
        
阅读(1685) 
         
        推荐(1)     
             
            
            
    Unable to make the session state request to the session state server
    
            
摘要:Unabletomakethesessionstaterequesttothesessionstateserver.PleaseensurethattheASP.NETStateserviceisstartedandthattheclientandserverportsarethesame.Ifth...
        
阅读全文
                posted @ 
2015-05-06 22:55 
西湖浪子
        
阅读(1602) 
         
        推荐(0)     
             
            
            
    泛型数据类型转换方法
    
            
摘要:protected T ConvertObject(object obj) { T _result = default(T); if (obj != null) { _result = ...
        
阅读全文
                posted @ 
2015-03-29 20:33 
西湖浪子
        
阅读(475) 
         
        推荐(0)     
             
            
            
    Net4.0---对HTML净化的处理
    
            
摘要:在使用Asp.Net进行Web开发时我一直都很注重最终生成的HTML是否干净,所以我会使用Repeater取代GridView等控件,可控性好而且生成的HTML代码也非常干净。干净的HTML有很多好处,如代码相应较少加载速度快,便于控制页面元素等。在AspNet4中对HTML的净化做了很大的改进,下...
        
阅读全文
                posted @ 
2014-08-05 09:10 
西湖浪子
        
阅读(207) 
         
        推荐(0)     
             
            
            
    ViewState 优化方案
    
            
摘要:protected override object LoadPageStateFromPersistenceMedium(){ var viewStateID = (string)((Pair)base.LoadPageStateFromPersistenceMedium()).Second;...
        
阅读全文
                posted @ 
2014-07-31 13:05 
西湖浪子
        
阅读(147) 
         
        推荐(0)     
             
            
            
    读取大文件
    
            
摘要:private void ReadStreamFromFile() { string filePath = @"D:\abc.txt"; int bufferSize = 1024000; //每次读取的字节数 ...
        
阅读全文
                posted @ 
2014-04-18 16:51 
西湖浪子
        
阅读(184) 
         
        推荐(0)     
             
            
            
    使用DotNetZip压缩与解压缩
    
            
摘要:下载地址:http://dotnetzip.codeplex.com/解压后找到\\DotNetZipLib-DevKit-v1.9\zip-v1.9\Release下的Ionic.Zip.dll文件拷贝到C盘下接着打开Visual Studio Command Prompt (2010),然后定位...
        
阅读全文
                posted @ 
2014-04-15 11:00 
西湖浪子
        
阅读(1046) 
         
        推荐(0)