随笔分类 - .NET
摘要:1.传统ThreadStart 2.ParameterizedThreadStart 3.委托thread = new Thread(delegate() { NoticeBroadcast(userinfos, com2); }); 4.匿名方法 thread = new Thread(() =>NoticeBroadcast(userinfos, com2));
阅读全文
摘要:1: public class SpeakLouder 2: { 3: private WavFormat _wavFormat=new WavFormat(); //文件格式 4: private byte[] _audioData; //语音数据 5: private SpeechSy...
阅读全文
摘要://阻止enter键回发到服务端$(function () { $("input[type=text]").each(function () { $(this).keydown(function (event) { if (event.which || event.keyCode) { if ((event.which == 13) || (event.keyCode == 13)) { retu...
阅读全文
摘要:对于js页面来说,未使用服务端控件,点击下载按钮时不会触发服务端事件,且不会提交数据到服务端页面后台进行数据处理,所以要下载文件比较困难。且使用jQ的post来请求一般处理程序也不能实现文件的下载,根本不会弹出提示用户保存文件的对话框。但会将文件数据获取到。要解决一般处理程序下载文件的办法,其实很简...
阅读全文
摘要:FtpWeb.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.IO; 5 using System.Net; 6 using System.Windows...
阅读全文
摘要:#region 搜索ftp服务器地址 /// /// 搜索ftp服务器 /// public void SearchFtpServer() {var beginIp=""192.168.1.1;var endIp=""192....
阅读全文
摘要:1 /* 2 FTPFactory.cs 3 Better view with tab space=4 4 Written by Jaimon Mathew (jaimonmathew@rediffmail.com) 5 Rolander,Dan (Dan.Rolander@marriott.com) has modified the 6 download 7 method to cope with file name with path information. He also 8 provided 9 ...
阅读全文

浙公网安备 33010602011771号