C#
猿敲月下码
开源软件作者
展开
-
C#模拟post请求调用request.GetResponse()超时,报 System.Net.WebException: The operation has timed out.
C#模拟post请求调用request.GetResponse()超时,报 System.Net.WebException: The operation has timed out.解决方法1:设置:request.ServicePoint.Expect100Continue = false;解决方法2,尝试使用usingusing (HttpWebResponse respon...原创 2020-04-02 17:18:02 · 5131 阅读 · 0 评论 -
获取汉字的拼音简码方法
public static string GetCodstring(string UnName) { int i = 0; ushort key = 0; string strResult = string.Empty; //创建两个不同的encoding对象原创 2009-01-06 20:57:00 · 1867 阅读 · 0 评论 -
C#实现简单验证码
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;us原创 2009-01-06 21:12:00 · 1035 阅读 · 0 评论 -
DataGridView右键选中某单元格(C# Winfrom)
//添加下面事件 private void DataGridView_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex >= 0) { if (e.Button == Sy原创 2009-01-06 21:31:00 · 3208 阅读 · 0 评论 -
RSA加解密,Java和C#互通
使用场景Java作为服务端生成一对公私钥,C#作为客户端拥有公钥。RSA算法这里就不多做介绍了,可参考RSA算法介绍规范公私钥的形式都是base64字符串通过公私钥加密后的字符串也是base64字符串测试内容C#用公钥加密,Java用私钥解密Java用私钥加密,C#用公钥解密测试代码先给出测试代码,后面会有具体的源码。首先Java作为服务端生成一对公...原创 2018-08-03 10:47:48 · 9330 阅读 · 5 评论