2014年4月22日

常用正则表达式

摘要: "^\d+$" //非负整数(正整数 + 0)"^[0-9]*[1-9][0-9]*$" //正整数"^((-\d+)|(0+))$" //非正整数(负整数 + 0)"^-[0-9]*[1-9][0-9]*$" //负整数"^-?\d+$" //整数"^\d+(\.\d+)?$" /... 阅读全文

posted @ 2014-04-22 08:18 公爵大人 阅读(99) 评论(0) 推荐(0)

ajaxpro在IIS7下,'***'未定义错误.解决办法

摘要: 阅读全文

posted @ 2014-04-22 08:16 公爵大人 阅读(72) 评论(0) 推荐(0)

C#图片处理类

摘要: using System;using System.Collections.Generic;using System.Text;using System.Drawing;using System.Drawing.Drawing2D;using System.Drawing.Imaging;using... 阅读全文

posted @ 2014-04-22 08:15 公爵大人 阅读(211) 评论(0) 推荐(0)

Asp.Net获取客户端IP地址及地理位置

摘要: /// /// 获取IP地址(无视代理) /// /// private string getIp() { if (System.Web.HttpContext.Current.Request.ServerVariables["HTTP_VIA"] !=... 阅读全文

posted @ 2014-04-22 08:13 公爵大人 阅读(590) 评论(0) 推荐(0)

Js实现页面延迟加载

摘要: 方法一:DIV判断法,就是在页脚底部放置一个DIV,然后判断如果滚动条接近该DIV即继续加载数据。/********************************页面延迟加载开始********************************/functionBottomCheck() {varo... 阅读全文

posted @ 2014-04-22 08:12 公爵大人 阅读(534) 评论(0) 推荐(0)

.net 邮件操作

摘要: using System.Net;using System.Net.Mail;public void doMail(){//实例化一个SmtpClientSmtpClient smtp = new SmtpClient();//将smtp的出站方式设为Networksmtp.DeliveryMeth... 阅读全文

posted @ 2014-04-22 08:10 公爵大人 阅读(108) 评论(0) 推荐(0)

2014年4月21日

汉字转拼音缩写

摘要: /// 〈summary〉 ////// 〈/summary〉 /// 〈param name="str"〉要转换的汉字字符串〈/param〉 /// 〈returns〉拼音缩写〈/returns〉 public string GetPYString(string str) { string ... 阅读全文

posted @ 2014-04-21 17:27 公爵大人 阅读(444) 评论(0) 推荐(0)

导航