摘要: IE8报错误: 用户代理:Mozilla/4.0(compatible;MSIE8.0;WindowsNT5.1;Trident/4.0;.NETCLR2.0.50727;.NETCLR3.0.04506.648;.NETCLR3.5.21022;.NET4.0C;.NETCLR3.0.4506.2... 阅读全文
posted @ 2014-10-13 11:55 MyFirstHome 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1: using System; 2: using System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5: 6: namespace AnkeEdu.Tools 7: { 8: 9: /// 10: /// 电话号码帮助类 ... 阅读全文
posted @ 2014-05-09 13:35 MyFirstHome 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 1: /// 2: /// 去除HTML标记 3: /// 4: /// 包括HTML的源码 5: /// 已经去除后的文字 6: public static string RemoveHTML(string Htmlstring) 7: { 8:... 阅读全文
posted @ 2014-05-09 13:33 MyFirstHome 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 1: 2: using System; 3: using System.Collections.Generic; 4: using System.Text; 5: using System.IO; 6: using System.Runtime.Serialization.Formatters.Binary; 7: using System.Runt... 阅读全文
posted @ 2014-05-09 13:22 MyFirstHome 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 1: using System; 2: using System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5: 6: namespace AkDTH.Common 7: { 8: /// 9: /// 时间字符串帮助类 10: ... 阅读全文
posted @ 2014-05-09 13:15 MyFirstHome 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 1: using System; 2: using System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5: using System.Text.RegularExpressions; 6: using System.Globalization; 7: 8:... 阅读全文
posted @ 2014-05-09 13:14 MyFirstHome 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 1: 2: // 创建日期: 2008-04-23 3: // 说 明: 日期,时间处理相关的类,大多转换为字符串。 4: using System; 5: using System.Collections.Generic; 6: using System.Text; 7: 8: namespace AnkeEdu.Tools 9: ... 阅读全文
posted @ 2014-05-09 13:08 MyFirstHome 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 需要调用windows.Forms命名空间,使用一个类库WebPreview1.1.rar_by_Kai.Ma,此处仅记录之。给一个下载链接WebPreview1.1.rar_by_Kai.Ma.rar 阅读全文
posted @ 2014-05-05 15:24 MyFirstHome 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 对于初学编程者基本使用计时器来实现重复的做一件事情。但在对于一些数据库操作方面或者对时间要求比较高的情况下,使用计时器是会出现问题的。一个简单的例子是短信提交,如果从数据库中取出数据,然后提交到网关,在给数据库标识已经提交,这个过程必须严格控制时间,计时器的时间。但即使这样偶尔还是会出现多次重复提交的情况,最终导致整个过程混乱。如果在网络好的情况下,提交一次短信需要0.1秒,你的计时器设置时间为3... 阅读全文
posted @ 2014-05-05 14:44 MyFirstHome 阅读(1704) 评论(0) 推荐(0) 编辑
摘要: 很多列表图片的原图超过指定大小,然而图片本身高宽比例不是固定的,因此在设置此类情况时最好的处理方式是使用js来固定图片大小并保证图片居中,且让图片不变形。 js代码: 1: /******************************************************************/ 2: /******将图片居中,在图片外面嵌套一个div不设置任何样式**... 阅读全文
posted @ 2014-05-05 09:46 MyFirstHome 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 1.传统ThreadStart 2.ParameterizedThreadStart 3.委托thread = new Thread(delegate() { NoticeBroadcast(userinfos, com2); }); 4.匿名方法 thread = new Thread(() =>NoticeBroadcast(userinfos, com2)); 阅读全文
posted @ 2014-05-04 20:32 MyFirstHome 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 1: public class SpeakLouder 2: { 3: private WavFormat _wavFormat=new WavFormat(); //文件格式 4: private byte[] _audioData; //语音数据 5: private SpeechSy... 阅读全文
posted @ 2014-05-04 20:29 MyFirstHome 阅读(302) 评论(0) 推荐(0) 编辑
摘要: //阻止enter键回发到服务端$(function () { $("input[type=text]").each(function () { $(this).keydown(function (event) { if (event.which || event.keyCode) { if ((event.which == 13) || (event.keyCode == 13)) { retu... 阅读全文
posted @ 2014-05-04 16:03 MyFirstHome 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 对于js页面来说,未使用服务端控件,点击下载按钮时不会触发服务端事件,且不会提交数据到服务端页面后台进行数据处理,所以要下载文件比较困难。且使用jQ的post来请求一般处理程序也不能实现文件的下载,根本不会弹出提示用户保存文件的对话框。但会将文件数据获取到。要解决一般处理程序下载文件的办法,其实很简... 阅读全文
posted @ 2014-04-21 12:46 MyFirstHome 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-04-16 13:29 MyFirstHome 阅读(390) 评论(0) 推荐(0) 编辑
摘要: #region 搜索ftp服务器地址 /// /// 搜索ftp服务器 /// public void SearchFtpServer() {var beginIp=""192.168.1.1;var endIp=""192.... 阅读全文
posted @ 2014-04-16 13:13 MyFirstHome 阅读(1675) 评论(0) 推荐(0) 编辑
摘要: 利用定位position:absolute;z-index:1;和iframe[z-index:-1]来解决此问题,最好根据需要加上: border='0' frameborder='0' scrolling='no'来去除滚动条和边框,需要使用jquery1.7.2.js。解决方法:1.将ifra... 阅读全文
posted @ 2014-04-16 13:07 MyFirstHome 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 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 ... 阅读全文
posted @ 2014-04-09 13:59 MyFirstHome 阅读(2642) 评论(1) 推荐(0) 编辑
摘要: 可以在客户端对密码进行简单的64位加密,服务端对应使用64位解密即可。 1 /** 2 * 3 * Base64 encode / decode 4 * 5 * @author 6 7 * @date 8 9 * @email 10 */ 11 12 function Base64() { 13 14 // private property 15 _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; 16 17 /... 阅读全文
posted @ 2014-04-09 13:10 MyFirstHome 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 首先需要引用jquery-1.7.2.js.页面下拉框有对应的数据,此下拉框的查询将不与服务器交互。本地下拉框查询。暂不支持通过键盘上下按键和enter键控制 1 // JavaScript Document 2 //使用方法:IniteMyInputSelect('id');IniteMyInputSelect(['id1','id2','id3']); 3 //id不需要加‘#’,且必须是id 4 function IniteMyInputSelect(k) { 5 //如果是数组 6 if ((typeof (k) == & 阅读全文
posted @ 2014-04-09 13:04 MyFirstHome 阅读(398) 评论(0) 推荐(0) 编辑