文章分类 -  ASP.NET技术专区

1 2 3 4 5 ··· 9 下一页
努力学习科学文化知识
OTP 口令
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Security.Cryptography;using System.Text; public class Totp { private read 阅读全文
posted @ 2023-05-13 09:59 西湖浪子 阅读(29) 评论(0) 推荐(0)
Docker netcore 无法连接 rds sqlserver 问题
摘要:本地的 dockfile 加上下面一句话就可以了RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf 经过验证。Mysql是没有问题的。Sqlserver 需要加上 证书兼容 阅读全文
posted @ 2021-11-22 16:55 西湖浪子 阅读(119) 评论(0) 推荐(0)
C#4.0 HTTP协议无法使用TLS1.2的问题
摘要:问题:当https 协议只支持 TLS 1.2 版本以上协议的时候。常规的 get post 请求将会失败: 报错信息:请求被中止: 未能创建 SSL/TLS 安全通道 4.0 解决方案: 在发送HTTP请求前加入下行代码 ServicePointManager.SecurityProtocol = 阅读全文
posted @ 2020-06-02 14:14 西湖浪子 阅读(1372) 评论(0) 推荐(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) 推荐(0)
Framework4 task
摘要:创建和执行任务 Task 可以多种方式创建实例。 最常用的方法,它位于开头 .NET Framework 4.5, ,是调用静态 Run 方法。 Run 方法提供了简单的方法来启动任务使用默认值,并且无需额外的参数。 下面的示例使用 Run(Action) 方法来启动循环,然后显示循环迭代数的任务︰ 阅读全文
posted @ 2017-08-15 14:02 西湖浪子 阅读(345) 评论(0) 推荐(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) 推荐(0)
RSA Pem转XML
摘要:http://blog.csdn.net/jiayanhui2877/article/details/47187077 阅读全文
posted @ 2017-04-26 15:28 西湖浪子 阅读(663) 评论(0) 推荐(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) 推荐(0)
Cache缓存的遍历与清除所有缓存
摘要:遍历缓存数据 //取得Cache的枚举 IDictionaryEnumerator CacheEnum = Cache.GetEnumerator(); while (CacheEnum.MoveNext()) { //缓... 阅读全文
posted @ 2015-08-03 12:22 西湖浪子 阅读(3832) 评论(0) 推荐(0)
C#数据绑定控件中的DataSource属性浅谈
摘要:使用该属性指定用来填充Repeater控件的数据源。DataSource可以是任何System.Collections.IEnumerable对象, 如用于访问数据库的System.Data.DataView、System.Collections.ArrayList、System.Collectio... 阅读全文
posted @ 2015-07-17 17:29 西湖浪子 阅读(8839) 评论(0) 推荐(0)
5个很好用的.net 分析工具
摘要:编者按】作者 Senthil Kumar曾在自家的网站. NET试验过不少分析工具,下面这些是他试用之后的收集:1. 网站内App的性能和内存分析器JetBrains dotTrace来自JetBrain,是针对网站内App的性能和内存分析器,能有效剖析目标应用的性能,很快找到NET1.0到4.5版... 阅读全文
posted @ 2015-06-14 23:24 西湖浪子 阅读(370) 评论(0) 推荐(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) 推荐(0)
Session 中的InProc模式 与 StateServer模式
摘要:开发asp.net应用时,修改web.config中的SessionState节点。stateserver模式:InProc模式优点:获取session状态的速度快,session状态直接存储在iis的进程中。缺点:易丢失,经常需要重新登录StateServer模式优点:session状态单独存储在... 阅读全文
posted @ 2015-05-06 22:59 西湖浪子 阅读(1685) 评论(0) 推荐(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) 推荐(0)
泛型数据类型转换方法
摘要:protected T ConvertObject(object obj) { T _result = default(T); if (obj != null) { _result = ... 阅读全文
posted @ 2015-03-29 20:33 西湖浪子 阅读(475) 评论(0) 推荐(0)
Net4.0---对HTML净化的处理
摘要:在使用Asp.Net进行Web开发时我一直都很注重最终生成的HTML是否干净,所以我会使用Repeater取代GridView等控件,可控性好而且生成的HTML代码也非常干净。干净的HTML有很多好处,如代码相应较少加载速度快,便于控制页面元素等。在AspNet4中对HTML的净化做了很大的改进,下... 阅读全文
posted @ 2014-08-05 09:10 西湖浪子 阅读(207) 评论(0) 推荐(0)
读取大文件
摘要:private void ReadStreamFromFile() { string filePath = @"D:\abc.txt"; int bufferSize = 1024000; //每次读取的字节数 ... 阅读全文
posted @ 2014-04-18 16:51 西湖浪子 阅读(184) 评论(0) 推荐(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) 推荐(0)
Better ListView alternative - .NET control for WinForms
摘要:http://www.componentowl.com/Better ListView alternative - .NET control for WinFormsThe number one replacement component for the regular .NET ListView control.We’ve rewritten the .NET ListView control. Great look and feel, more features, better behavior. No learning needed.http://www.componentowl.com 阅读全文
posted @ 2014-01-03 13:25 西湖浪子 阅读(409) 评论(0) 推荐(0)
OAuth2.0服务器端的实现
摘要:authorize 授权关系存储表字段 备注appid 应用IDuserid 用户IDaddtime 添加时间…… 其他表3 access_token 访问令牌存储表字段 备注access_token 访问令牌addtime 添加时间…… 其他一个OAuth2.0服务器端的实现全部代码见附件.数据库是这样的:(没有必要用数据库,access_token是临时的,放在内存中就可以了)create database auth;use auth;create table access_token (id bigint,access_token varchar(255) NOT NULL,token_ 阅读全文
posted @ 2013-11-22 11:24 西湖浪子 阅读(497) 评论(0) 推荐(0)

1 2 3 4 5 ··· 9 下一页