自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(83)
  • 资源 (4)
  • 收藏
  • 关注

转载 基于Jquery+Ajax+Json+高效分页

View Code using System;using System.Web;using System.Data.SqlClient;using System.Data;using System.Collections.Generic;using System.Web.Script.Serialization;public class GetData : IHttpHandl

2012-06-15 14:49:16 1108

原创 缓存管理

using System;using System.Collections;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions;using System.Web;using System.Web.Caching;namespace XXXX.Common{

2012-06-15 14:35:06 1652 1

原创 DateHelper

using System;using System.Collections.Generic;using System.Text;namespace XXXX.Common{ public class DateHelper { /// /// 获取指定年份的最大周数 /// /// 年份 /

2012-06-15 14:34:07 1891

原创 字符加解密

using System;using System.Security.Cryptography;using System.Web.Security;using System.IO;using System.Text;using System.Configuration;namespace XXXX.Common{ /// /// 字符加解密 ///

2012-06-15 14:33:30 1993

原创 Excel操作

using System;using System.Collections.Generic;using System.Data;using System.IO;using System.Text;using System.Web;using NPOI;using NPOI.HPSF;using NPOI.HSSF;using NPOI.HSSF.UserModel;using

2012-06-15 14:32:59 511

原创 文本文件从磁盘读取、写入

using System;using System.Text;using System.IO;namespace XXXX.Common{ /// /// 文本文件从磁盘读取、写入 /// public class FileHelper { /// /// 从文件中读取文本内容

2012-06-15 14:32:10 1083

原创 图片操作:生成缩略图、添加水印、截取图片等

using System;using System.Drawing;using System.Drawing.Imaging;using System.IO;using System.Web;namespace XXXX.Common{ /// /// 图片操作:生成缩略图、添加水印、截取图片等 /// public class ImagesHel

2012-06-15 14:31:22 884

原创 查询IP所在地

using System;using System.IO;using System.Collections;using System.Configuration;using System.Text;using System.Text.RegularExpressions;using System.Web;namespace XXXX.Common{ /// //

2012-06-15 14:30:22 585

原创 显示消息提示对话框,不输出页面内容,并返回上一页

using System;using System.Text;using System.Web.UI;namespace XXXX.Common{ public class Js { /// /// 显示消息提示对话框,不输出页面内容,并返回上一页 /// /// 当前页面指针 /// 提示

2012-06-15 14:29:37 2945

原创 日志类

using System;using System.Collections.Generic;using System.IO;using System.Text;using System.Threading;namespace XXXX.Common{ /// /// 日志类 /// /// /// 当调用Write方法时不会造成线程阻塞,

2012-06-15 14:28:56 536

原创 序列和反序列化

using System;using System.Collections.Generic;using System.Collections.Specialized;using System.Globalization;using System.Text;namespace XXXX.Common{ /// /// 序列和反序列化 /// pub

2012-06-15 14:28:13 561

原创 汉字转拼音类

using System;using System.Text;using System.Text.RegularExpressions;namespace XXXX.Common{ /// /// 汉字转拼音类 /// public class PIN { private static int[] pyValue = new i

2012-06-15 14:27:24 754

原创 远程上传从其他网站复制过来的图片

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.IO;namespace XXXX.Common{ /// /// 远程上传从其他网站复制过来的图片 /// publi

2012-06-15 14:26:50 1428

原创 RSA加解密

using System;using System.Collections.Generic;using System.Security.Cryptography;using System.Text;namespace XXXX.Common{ /// /// RSA加解密 /// public class RSA { ///

2012-06-15 14:26:01 1785

原创 StringHelper

using System;using System.Text;using System.Text.RegularExpressions;using System.Web;using System.Data;using System.Collections;namespace XXXX.Common{ /// /// 字符串操作方法 /// pub

2012-06-15 14:25:03 950

原创 Validator

using System;using System.Text;using System.Text.RegularExpressions;using System.IO;namespace XXXX.Common{ /// /// 数据验证类 /// public class Validator { /// /

2012-06-15 14:23:28 515

原创 XmlHelper

using System;using System.Xml;using System.Web;namespace XXXX.Common{ /// /// 必需用XPATH表达式来获取相应节点 /// 关于xpath可以参见: /// public class XmlHelper { #region 变量

2012-06-15 14:21:11 2602

原创 生成Code128A,Code128B,Code128C,EAN128条码

using System;using System.Data;using System.Collections.Generic;using System.Text;using System.Drawing;namespace XXXX.Common{ /// /// 生成Code128A,Code128B,Code128C,EAN128条码 ///

2012-06-15 14:18:16 16481 2

原创 正则全部符号解释

字符描述\将下一个字符标记为一个特殊字符、或一个原义字符、或一个 向后引用、或一个八进制转义符。例如,'n' 匹配字符 "n"。'\n' 匹配一个换行符。序列 '\\' 匹配 "\" 而 "\(" 则匹配 "("。^匹配输入字符串的开始位置。如果设置了 RegExp 对象的 Multiline 属性,^ 也匹配 '\n' 或 '\r' 之后的位置。$

2011-12-20 15:25:13 472

原创 把一幅图像放置到画布上

Your browser does not support the canvas element.var c=document.getElementById("myCanvas");var cxt=c.getContext("2d");var img=new Image()img.src="/i/eg_flower.png"cxt.drawImage(img,0,0);

2011-10-21 17:26:10 1734

原创 html5 颜色渐变

Your browser does not support the canvas element.var c=document.getElementById("myCanvas");var cxt=c.getContext("2d");var grd=cxt.createLinearGradient(0,0,175,50);grd.addColorStop(0,"#FF0000"

2011-10-21 17:25:06 5916 1

原创 html5 画圆

Your browser does not support the canvas element.var c=document.getElementById("myCanvas");var cxt=c.getContext("2d");cxt.fillStyle="#FF0000";cxt.beginPath();cxt.arc(80,28,25,0,Math.PI*2,true

2011-10-21 17:23:06 3275

转载 mvc在视图中使用递归生成树状结构

在开发过程中往往会有一个需求,就是将一个树状的数据结构在视图中表示出来。例如最传统的多级分类,系统中有一系列根分类,每个分类中又带有一些子分类,而我们的目标便是在页面上生成一个由ul和li嵌套组成的HTML结构。这个问题看似简单,但是如何让实现变的轻松、易于使用也是一个值得讨论的

2011-10-07 14:27:11 9894 1

转载 ASP.NET网站实现中英文转换(本地化资源)

主要内容:1. 简单例子2. 进一步认识Localization3. 语言转换4. 解决方案一. 简单例子下面通过一个简单的例子来说明利用Localization来实现本地化是那么的简单,首先我们打开Visual Studio 2005,新建一个名叫Loc

2011-09-27 16:38:22 6944

转载 利用WebService自定义显示天气情况

下面这个地址是一个比较稳定的获取天气情况的WebService:http://www.webxml.com.cn/WebServices/WeatherWebService.asmx  这里用到里面的getWeatherbyCityName方法

2011-09-27 16:08:54 1208

转载 Asp.net中实现同一用户名不能同时登录(单点登录)

最近找了一些单点登录的,发现了这篇文章,貌似还是可以实现的,先保存了。 Web 项目中经常遇到的问题就是同一用户名多次登陆的问题,相应的解决办法也很多,总结起来不外乎这几种解决办法:将登陆后的用户名放到数据库表中;登陆后的用户名放到Session中;登陆后的用户名放到Appl

2011-09-27 10:05:00 4085 2

转载 BasePage

摘要:本文描述了在用VS.NET进行B/S开发时采用的框架结构,一般建立类库项目和Web项目,在Web基本aspx页面类中调用类库中方法,同时在aspx页面类中不需要写任何对数据库操作的SQL代码,便于分层开发和代码维护。1、概述使用微软Visual Studio .NE

2011-09-24 10:32:00 1337

转载 JS 贪吃蛇

snakefunction Snake(canvas){ this.canvas = canvas; this.length = 0; this.direction = 'down'; this.body = [], this.head = funct

2011-09-24 08:40:07 483

转载 JQuery上传插件Uploadify使用详解

Uploadify是JQuery的一个上传插件,实现的效果非常不错,带进度显示。不过官方提供的实例时php版本的,本文将详细介绍Uploadify在Aspnet中的使用,您也可以点击下面的链接进行演示或下载。官方下载官方文档官方演示首先按下面的步骤来实现一个简单的上传

2011-09-22 16:12:06 542

转载 查询分析器里查看执行计划

当需要分析某个查询的效能时,最好的方式之一查看这个查询的执行计划。执行计划描述SQL Server查询优化器如何实际运行(或者将会如何运行)一个特定的查询。 查看查询的执行计划有几种不同的方式。它们包括: SQL Server查询分析器里有一个叫做”显示实际执行计

2011-09-22 15:26:18 3418

原创 <dl><dt><dd>

*{ margin:0; padding:0;}body{ font-size:12px; line-height:1.8; padding:10px;}dl{clear:both; margin-bottom:5px;float:left;}dt,dd{paddin

2011-09-22 11:58:14 510

原创 <dl><dt><dd>

*{ margin:0; padding:0;}body{ font-size:12px; line-height:1.8; padding:10px;}dl{clear:both; margin-bottom:5px;float:left;width:100%}dt

2011-09-22 11:57:31 532

原创 网站变灰色代码方法大集合(站点哀悼代码之用)

网站变灰色代码变素色和黑白方法大集合(站点哀悼代码之用)举国都在哀悼此次地震的遇难者,很多门户网站纷纷变成灰色色调来缅怀那些逝者。身为站长的你是否也应该做些什么,那还等什么……而如何将网站变成灰色调呢,网站变灰色方法是什么?有哪些? 为了方便大家查

2011-09-21 10:49:32 884

转载 C# 大量函数

using System;using System.Collections.Generic;using System.Text;using Microsoft.Win32; //对注册表操作using System.Collections; //使用Arraylistu

2011-09-20 17:29:05 361

转载 不管你们信不信,反正我信了

谈谈年度最佳代码“不管你们信不信,反正我信了”2011-08-05 15:15 by 老赵, 7916 visits最近有段十分流行的代码,是从江湖传闻“身怀八蛋”的铁道部发言人王勇平同志的一句名言:“不管你们信不信,反正我信了……这是生命的奇迹……它就是发生了”

2011-09-17 10:14:41 924

原创 URL

老赵 http://www.cnblogs.com/JeffreyZhao/InfoQ http://www.infoq.com/cn/CodePlex http://www.codeplex.com/CodeProject http://www.code

2011-09-17 09:55:40 365

原创 JQUERY技巧

1、关于页面元素的引用通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法,且返回的对象为jquery对象(集合对象),不能直接调用dom定义的方法。2、jQuery对象与dom对象的转换只有jquery对象才

2011-09-10 16:02:07 377

原创 长篇文章分页

public string NoHTML(string Htmlstring) //去除HTML标记 { //删除脚本 Htmlstring = Regex.Replace(Htmlstring, @"]*?>.*?", "", RegexOptions.Ignore

2011-09-10 14:37:11 491

原创 js技巧代码

1.文本框焦点问题onBlur:当失去输入焦点后产生该事件onFocus:当输入获得焦点后,产生该文件Onchange:当文字值改变时,产生该事件Onselect:当文字加亮后,产生该文件<input type="text" value="mm" onfocus="i

2011-09-06 11:06:09 1178

原创 gridview 无数据保留表头

这里以datatable为数据源为例if (dt.Rows.Count == 0) { dt.Rows.Add(dt.NewRow()); this.gv_lookjoblist.DataSource = dt;

2011-09-03 15:18:56 610

lhgDialog-4.2.0

lhgDialog是一个功能强大且兼容面广的对话框组件,它拥有精致的界面与友好的接口

2014-10-22

lhgDialog窗口组件

lhgDialog是一个功能强大且兼容面广的对话框组件,它拥有精致的界面与友好的接口 为大型弹窗定制 本组件主要以iframe方式加载单独页面为主的弹出窗口,由其适用于后台管理和webOS类项目使用,独立的内容页更方便管理,页面的也不易受其它页面的影响,而且内容页可以是静态或动态的任何一种文件。 强大灵活的接口 由于本组件主要是用来制作大型的窗口,页面和窗口间的交互肯定会非常频繁,所以本组件提供了丰富的交互控制接口,可以非常方便的进行页面间的数据的传输。 细致的用户体验 智能无限级跨框架弹出,如果不是在输入状态,它支持Esc快捷键关闭;智能给按钮添加焦点;黄金比例垂直居中;采用九宫格的布局结构,css类钩子丰富,可以定制类似桌面软件般精致的皮肤... 跨平台兼容特性 兼容:IE6+、Firefox、Chrome、Safari、Opera以及iPad等移动设备。并且IE6下也能支持现代浏览器的静止定位(fixed)、覆盖下拉控件、alpha通道png背景。

2014-09-17

JQueryUploadDemo

JQueryUploadDemoJQueryUploadDemoJQueryUploadDemoJQueryUploadDemoJQueryUploadDemo

2011-09-05

usbkey(加密狗)读取

usbkey读取.....................

2011-08-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除