正则表达式测试.html
摘要:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD><TITLE>Javascript regex test page</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><SCRIPT>if (! document.all){ //兼容Mozilla的inne
阅读全文
posted @
2012-03-07 17:15
larryle
阅读(535)
推荐(0)
lunce.net.dll文件下载
摘要:http://download.csdn.net/download/taomanman/2352061
阅读全文
posted @
2012-03-06 10:04
larryle
阅读(203)
推荐(0)
格式化缩进文本
摘要:#region 格式化文本(输出内容) /// <summary> /// 格式化文本(输出内容) /// </summary> /// <param name="str"></param> /// <returns></returns> public static string MyFormatDestr(string str) { str = str.Replace(" ", " "); str = str.Replace("\&
阅读全文
posted @
2012-02-03 09:44
larryle
阅读(214)
推荐(0)
经典.net面试题目
摘要:经典.net面试题目1. 简述 private、 protected、 public、 internal 修饰符的访问权限。答 . private : 私有成员, 在类的内部才可以访问。 protected : 保护成员,该类内部和继承类中可以访问。 public : 公共成员,完全公开,没有访问限制。 internal: 在同一命名空间内可以访问。2 .列举ASP.NET 页面之间传递值的几种方式。 答. 1.使用QueryString, 如....?id=1; response. Redirect().... 2.使用Session变量3.使用Server.Transfer4.使用Appl
阅读全文
posted @
2012-01-31 21:45
larryle
阅读(342)
推荐(0)
lucene基本用法
摘要:[Lucene.Net]基本用法本文仅记录一些简单的使用方法,供初学者参考。以下例子采用Lucene.NET1.9版本,可取去Lucene.Net下载。1.基本应用usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingLucene.Net;usingLucene.Net.Analysis;usingLucene.Net.Analysis.Standard;usingLucene.Net.Documents;usingLucene.Net.Index;usingLucene.Net.QueryParsers;using
阅读全文
posted @
2012-01-31 17:57
larryle
阅读(570)
推荐(0)
公共类
摘要:using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Drawing;using System.Drawing.Ima
阅读全文
posted @
2012-01-31 14:55
larryle
阅读(253)
推荐(0)
redected从新页面打开
摘要:Redirect从新窗口打开阅览次数: 今天:0 总浏览:101文章来源: www.pccode.net原文作者: root整理日期: 2010-03-18发表评论 标签:Redirect新窗口打开字体大小:小中大/// <summary> /// Redirect从新窗口打开 /// </summary> /// <param name="url">重定向的URL地址</param> /// <param name="target">target目标</param> /// <
阅读全文
posted @
2012-01-16 15:42
larryle
阅读(191)
推荐(0)
利用全局应用程序文件禁止用户登录
摘要:protected void Application_BeginRequest(object sender, EventArgs e) { if (System.Configuration.ConfigurationManager.AppSettings["hidecall"].ToString() != "true") { string url = Request.Url.ToString(); string a = Request.PathInfo; if (url.IndexOf(".aspx") == -1) return;
阅读全文
posted @
2012-01-16 14:42
larryle
阅读(164)
推荐(0)
弹出下载对话框
摘要:#region 弹出下载对话框 /// <summary> /// 打开指定的文件 /// </summary> /// <param name="PathName">路径(相对路径)</param> /// <param name="FileName">文件名(带扩展名)</param> public static void OpenFile(string PathName, string FileName) { string name = PathName + FileName;
阅读全文
posted @
2012-01-11 12:15
larryle
阅读(386)
推荐(0)
.net将一个table导出成excel文件
摘要:#region 将一个table导出成excel文件 /// <summary> /// 将一个table导出成excel文件 /// </summary> /// <param name="tb"></param> public void TableToExcel(System.Data.DataTable tb) { string Filename = "dj"; System.Web.HttpContext context = System.Web.HttpContext.Current; if ((
阅读全文
posted @
2012-01-11 11:13
larryle
阅读(625)
推荐(0)
C#递归压缩文件
摘要:需要用到第三方控件ICSharpCode.SharpZipLib.dllusing System.IO; using System.IO.Compression;using ICSharpCode.SharpZipLib.Zip; using ICSharpCode.SharpZipLib.GZip; using ICSharpCode.SharpZipLib.Checksums; #region 压缩文件夹,支持递归 /// <summary> /// 压缩文件夹 /// </summary> /// <param name="dir">
阅读全文
posted @
2012-01-11 11:05
larryle
阅读(392)
推荐(0)
C#操作zip压缩解压
摘要:请下载 ICSharpCode.SharpZipLib.dll 文件引用到项目中using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using ICSharpCode.SharpZipLib.Zip;namespace GlobalsTech.ZP.Common{ public class ZIP { /// <summary> /// 压缩文件 /// </summary> /// <param name="F
阅读全文
posted @
2012-01-10 18:34
larryle
阅读(3204)
推荐(0)
将EXCEL文件导入到数据库中
摘要:把excel表格导入到sqlserver数据库中static void Main(string[] args) { string strConn = "Provider=Microsoft.Jet.Oledb.4.0;Data Source='C:/Users/Administrator/Desktop/全部企业代码证121.xls';Extended Properties='Excel 8.0;HDR=Yes;IMEX=1;'"; string mystring = "Provider =Microsoft.Jet.OLEDB.4
阅读全文
posted @
2012-01-07 16:22
larryle
阅读(165)
推荐(0)
.net读取html文件并输出
摘要:public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/html"; System.Text.Encoding code = System.Text.Encoding.GetEncoding("gb2312"); string filepath = context.Server.MapPath("/html/SeeResume.htm"); System.IO.StreamReader reder = new Syst
阅读全文
posted @
2012-01-07 15:34
larryle
阅读(1127)
推荐(0)
好帖子什么功能都有,非常齐全
摘要:编辑器加载中...http://topic.csdn.net/u/20120104/16/FFCEF791-C455-4FD5-B76B-A0DC54ACAFB5.html
阅读全文
posted @
2012-01-06 23:08
larryle
阅读(84)
推荐(0)
C# 多线程下载
摘要:很 多人都有过使用网络蚂蚁或网络快车互联网文件的经历,这些软件的使用可以大大加速互联网上文件的传输速度,减少文件传输的时间。这些软件为什么有如此大的 魔力呢?其主要原因是这些软件都采用了多线程下载和断点续传技术。如果我们自己来编写一个类似这样的程序,也能够快速的在互联网上下载文件,那一定是非常 愉快的事情。下面我就讲一讲如何利用C#语言编写一个支持多线程下载文件的程序,你会看到利用C#语言编写网络应用程序是多么的容易,从中也能体会到C# 语言中强大的网络功能。首 先介绍一下HTTP协议, HTTP亦即Hpyer Text Transfer Protocal的缩写,它是现代互联网上最重要的一种网
阅读全文
posted @
2011-12-23 00:39
larryle
阅读(1672)
推荐(0)
.net中将EXCEL表格导入导到sqlserver数据库中
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.OleDb;using System.Data;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { string strConn = "Provider=Microsoft.Jet.Oledb.4.0;Data Source='C:/Users/Administrator
阅读全文
posted @
2011-12-16 11:16
larryle
阅读(991)
推荐(0)