- 博客(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
1165
原创 缓存管理
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
1697
原创 DateHelper
using System;using System.Collections.Generic;using System.Text;namespace XXXX.Common{ public class DateHelper { /// /// 获取指定年份的最大周数 /// /// 年份 /
2012-06-15 14:34:07
1945
原创 字符加解密
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
2054
原创 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
552
原创 文本文件从磁盘读取、写入
using System;using System.Text;using System.IO;namespace XXXX.Common{ /// /// 文本文件从磁盘读取、写入 /// public class FileHelper { /// /// 从文件中读取文本内容
2012-06-15 14:32:10
1123
原创 图片操作:生成缩略图、添加水印、截取图片等
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
944
原创 查询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
625
原创 显示消息提示对话框,不输出页面内容,并返回上一页
using System;using System.Text;using System.Web.UI;namespace XXXX.Common{ public class Js { /// /// 显示消息提示对话框,不输出页面内容,并返回上一页 /// /// 当前页面指针 /// 提示
2012-06-15 14:29:37
2979
原创 日志类
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
579
原创 序列和反序列化
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
603
原创 汉字转拼音类
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
789
原创 远程上传从其他网站复制过来的图片
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
1472
原创 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
1856
原创 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
992
原创 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
555
原创 XmlHelper
using System;using System.Xml;using System.Web;namespace XXXX.Common{ /// /// 必需用XPATH表达式来获取相应节点 /// 关于xpath可以参见: /// public class XmlHelper { #region 变量
2012-06-15 14:21:11
2637
原创 生成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
16768
原创 正则全部符号解释
字符描述\将下一个字符标记为一个特殊字符、或一个原义字符、或一个 向后引用、或一个八进制转义符。例如,'n' 匹配字符 "n"。'\n' 匹配一个换行符。序列 '\\' 匹配 "\" 而 "\(" 则匹配 "("。^匹配输入字符串的开始位置。如果设置了 RegExp 对象的 Multiline 属性,^ 也匹配 '\n' 或 '\r' 之后的位置。$
2011-12-20 15:25:13
510
原创 把一幅图像放置到画布上
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
1763
原创 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
5987
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
3350
转载 mvc在视图中使用递归生成树状结构
在开发过程中往往会有一个需求,就是将一个树状的数据结构在视图中表示出来。例如最传统的多级分类,系统中有一系列根分类,每个分类中又带有一些子分类,而我们的目标便是在页面上生成一个由ul和li嵌套组成的HTML结构。这个问题看似简单,但是如何让实现变的轻松、易于使用也是一个值得讨论的
2011-10-07 14:27:11
10043
转载 ASP.NET网站实现中英文转换(本地化资源)
主要内容:1. 简单例子2. 进一步认识Localization3. 语言转换4. 解决方案一. 简单例子下面通过一个简单的例子来说明利用Localization来实现本地化是那么的简单,首先我们打开Visual Studio 2005,新建一个名叫Loc
2011-09-27 16:38:22
7009
转载 利用WebService自定义显示天气情况
下面这个地址是一个比较稳定的获取天气情况的WebService:http://www.webxml.com.cn/WebServices/WeatherWebService.asmx 这里用到里面的getWeatherbyCityName方法
2011-09-27 16:08:54
1237
转载 Asp.net中实现同一用户名不能同时登录(单点登录)
最近找了一些单点登录的,发现了这篇文章,貌似还是可以实现的,先保存了。 Web 项目中经常遇到的问题就是同一用户名多次登陆的问题,相应的解决办法也很多,总结起来不外乎这几种解决办法:将登陆后的用户名放到数据库表中;登陆后的用户名放到Session中;登陆后的用户名放到Appl
2011-09-27 10:05:00
4164
转载 BasePage
摘要:本文描述了在用VS.NET进行B/S开发时采用的框架结构,一般建立类库项目和Web项目,在Web基本aspx页面类中调用类库中方法,同时在aspx页面类中不需要写任何对数据库操作的SQL代码,便于分层开发和代码维护。1、概述使用微软Visual Studio .NE
2011-09-24 10:32:00
1398
转载 JS 贪吃蛇
snakefunction Snake(canvas){ this.canvas = canvas; this.length = 0; this.direction = 'down'; this.body = [], this.head = funct
2011-09-24 08:40:07
525
转载 JQuery上传插件Uploadify使用详解
Uploadify是JQuery的一个上传插件,实现的效果非常不错,带进度显示。不过官方提供的实例时php版本的,本文将详细介绍Uploadify在Aspnet中的使用,您也可以点击下面的链接进行演示或下载。官方下载官方文档官方演示首先按下面的步骤来实现一个简单的上传
2011-09-22 16:12:06
580
转载 查询分析器里查看执行计划
当需要分析某个查询的效能时,最好的方式之一查看这个查询的执行计划。执行计划描述SQL Server查询优化器如何实际运行(或者将会如何运行)一个特定的查询。 查看查询的执行计划有几种不同的方式。它们包括: SQL Server查询分析器里有一个叫做”显示实际执行计
2011-09-22 15:26:18
3474
原创 <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
542
原创 <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
565
原创 网站变灰色代码方法大集合(站点哀悼代码之用)
网站变灰色代码变素色和黑白方法大集合(站点哀悼代码之用)举国都在哀悼此次地震的遇难者,很多门户网站纷纷变成灰色色调来缅怀那些逝者。身为站长的你是否也应该做些什么,那还等什么……而如何将网站变成灰色调呢,网站变灰色方法是什么?有哪些? 为了方便大家查
2011-09-21 10:49:32
921
转载 C# 大量函数
using System;using System.Collections.Generic;using System.Text;using Microsoft.Win32; //对注册表操作using System.Collections; //使用Arraylistu
2011-09-20 17:29:05
391
转载 不管你们信不信,反正我信了
谈谈年度最佳代码“不管你们信不信,反正我信了”2011-08-05 15:15 by 老赵, 7916 visits最近有段十分流行的代码,是从江湖传闻“身怀八蛋”的铁道部发言人王勇平同志的一句名言:“不管你们信不信,反正我信了……这是生命的奇迹……它就是发生了”
2011-09-17 10:14:41
1048
原创 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
403
原创 JQUERY技巧
1、关于页面元素的引用通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法,且返回的对象为jquery对象(集合对象),不能直接调用dom定义的方法。2、jQuery对象与dom对象的转换只有jquery对象才
2011-09-10 16:02:07
411
原创 长篇文章分页
public string NoHTML(string Htmlstring) //去除HTML标记 { //删除脚本 Htmlstring = Regex.Replace(Htmlstring, @"]*?>.*?", "", RegexOptions.Ignore
2011-09-10 14:37:11
522
原创 js技巧代码
1.文本框焦点问题onBlur:当失去输入焦点后产生该事件onFocus:当输入获得焦点后,产生该文件Onchange:当文字值改变时,产生该事件Onselect:当文字加亮后,产生该文件<input type="text" value="mm" onfocus="i
2011-09-06 11:06:09
1533
原创 gridview 无数据保留表头
这里以datatable为数据源为例if (dt.Rows.Count == 0) { dt.Rows.Add(dt.NewRow()); this.gv_lookjoblist.DataSource = dt;
2011-09-03 15:18:56
662
lhgDialog窗口组件
2014-09-17
JQueryUploadDemo
2011-09-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人