摘要: "^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]+\.[0-9]*[1-9][0-9]... 阅读全文
posted @ 2006-02-21 16:02 jhtchina 阅读(426) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Runtime.InteropServices;using System.Text;namespace Win... 阅读全文
posted @ 2006-02-21 15:49 jhtchina 阅读(650) 评论(0) 推荐(0) 编辑
摘要: From:http://elevenwolf.cnblogs.com/archive/2004/07/23/26969.html1.一个应用程序只能被用户打开一次 Process mobj_pro =Process.GetCurrentProcess(); Process[] mobj_proList=Process.GetProcessesByName(mobj_pro.P... 阅读全文
posted @ 2006-02-21 15:14 jhtchina 阅读(768) 评论(0) 推荐(0) 编辑
摘要: 1.思归http://blog.joycode.com/saucer/2.LoveCherryhttp://lovecherry.cnblogs.com/3.陕北吴旗娃http://blog.mvpcn.net/webdiyer/http://www.webdiyer.com/4.蝈蝈俊.nethttp://blog.joycode.com/ghj/5.袁峰http://blog.joycode.... 阅读全文
posted @ 2006-01-15 02:21 jhtchina 阅读(255) 评论(0) 推荐(0) 编辑
摘要: From:http://singlepine.cnblogs.com/articles/299457.html 1.WMI简介WMI是英文Windows Management Instrumentation的简写,它的功能主要是:访问本地主机的一些信息和服务,可以管理远程计算机(当然你必须要拥有足够的权限),比如:重启,关机,关闭进程,创建进程等。2.使用时首先添加System.Managemen... 阅读全文
posted @ 2006-01-15 01:46 jhtchina 阅读(897) 评论(0) 推荐(0) 编辑
摘要: *.resx;*.scc;*.bak;*.cs;*.webinfo;*.vspscc;*.csproj;*.vsdisco;*.pdb上面的文件是需要删除的 阅读全文
posted @ 2006-01-15 00:39 jhtchina 阅读(505) 评论(2) 推荐(0) 编辑
摘要: From :http://support.microsoft.com/default.aspx?scid=kb;en-us;816944http://blog.chinaitlab.com/user1/47317/archives/2005/4232.html SUMMARY When you try to use Internet Information Services Manager (II... 阅读全文
posted @ 2005-12-14 16:28 jhtchina 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 命令:aspnet_regiis -i 如果没有按照正常的先装iis后装.net的顺序,可以使用此命令重新注册一下,打开iis的站点属性-文档-应该有后缀名为.aspx的默认文档。如果打开项目失败,提示错误,也可以使用此方法,但要确保,在iis里面不要选择具体的ip地址,让系统默认。同时呢,也要把asp.net的权限设为可读写,然后在保证文件路径正确,那么估计就不会出什么错误了From :http... 阅读全文
posted @ 2005-12-14 12:42 jhtchina 阅读(625) 评论(0) 推荐(0) 编辑
摘要: --1:获取当前数据库中的所有用户表 select Name from sysobjects where xtype='u' and status>=0 --2:获取某一个表的所有字段 select name from syscolumns where id=object_id(N'表名') --3:查看与某一个表相关的视图、存储过程、函数 select a.* from sysobjects a... 阅读全文
posted @ 2005-12-09 15:58 jhtchina 阅读(2656) 评论(0) 推荐(0) 编辑
摘要: From:http://blog.waynedeng.com/blogview.asp?logID=469原来题目是:专门针对SQL Server的注入手段 小弟潜心研究sql injection一个余月,发现国内存在sql injection漏洞的网站一大把一大把,80%以上的asp网站都似乎是不学无术、骗吃骗喝的“程序员”所做。不光漏洞多,而且网站内部结构也是零乱无比……关于sql inje... 阅读全文
posted @ 2005-11-29 15:50 jhtchina 阅读(304) 评论(0) 推荐(0) 编辑