| « | December 2025 | » | | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | |
|
| 公告 |
Back Today!
Hold on~
Come on~ |
| 统计 |
blog名称:执著 日志总数:39 评论数量:43 留言数量:0 访问次数:247324 建立时间:2005年3月4日 | |
[.net]正规判断email |
执著 发表于 2007/3/30 14:45:15 |
function checkemail(inputemail) //设置参数值 { var email = inputemail.value; var re = /^.+@.+\..{2,3}$/ if (re.test(email)) { var tempstring = email.split("@") if (tempstring[2] == undefined) return true; else   | |
|
|
[.net]文件md5值 |
public static string md5_hash(string path) { try { FileStream get_file = new FileStream(path, FileMode.Open, FileAccess.Read,
FileShare.Read); &nb | |
|
|
[.net]C#淡出淡入窗体 |
执著 发表于 2006/10/4 13:47:36 |
using System.Runtime.InteropServices;
public class Win32 { public const Int32 AW_HOR_POSITIVE = 0x00000001; // 从左到右打开窗口 public const Int32 AW_HOR_NEGATIVE = 0x00000002; // 从右到左打开窗口 public cons | |
|
|
[.net]VSS 6 admin用户的密码破解 |
the secret is to hack the um.dat file to remove the Admin password
from offset 80 the bytes are (all numbers are hex)
0:80 55 55 bc 7f 41 64 6d 69 6e 00 00 00 00 00 00 00 0:90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0:a0 00 00 00 00 90 6e 00 00 a8 01 00 00 00 00 00 00
Just load the um.dat file into a hex editor and change the bytes from = offset 80 to exactly what is shown above. When the SourceSafe admin tool = star | |
|
|
[.net]页面开发的准则一 |
执著 发表于 2006/8/17 16:28:39 |
|
结构(html,xhtml,xml..)
表现(CSS,xslt..)
行为(Dom,EcmaSCRIPT..)
三种要素分离 | |
|
|
[.net]操作excel的类 |
执著 发表于 2005/8/24 11:44:19 |
using System; using System.Data; using System.Data.OleDb; using Excel; using System.Collections.Specialized;
namespace winapp_test { /// <summary> /// class_excel 的摘要说明。 /// </summary> public class class_excel { private string _filename; Excel.ApplicationClass app = new ApplicationClass(); Excel.Workbook excel_wb; public class_excel(string f) &nb | |
|
|
[.net]按正则式查找文本文件中所有符合的字符 |
open1.Filter="文本文件(*.txt)|*.txt|所有文件|*.*"; open1.ShowDialog(); if (open1.FileNames.Length > 0) { save1.Filter ="文本文件(*.txt)|*.txt|所有文件|*.*"; save1.CreatePrompt = true; save1.ShowDialog(); if (save1.FileName != "") { System.IO.StreamWriter w | |
|
|
[.net]kill进程 |
执著 发表于 2005/4/12 11:45:53 |
using System.Diagnostics;
....
try { foreach (Process thisproc in Process.GetProcessesByName("Excel")) { if(!thisproc.CloseMainWindow()) { thisproc.Kill(); } } } catch(Exception Ex | |
|
|
[.net]excel中的工作表名sheetname |
执著 发表于 2005/4/11 23:49:25 |
Excel.ApplicationClass exa = new Excel.ApplicationClass(); Excel.Workbooks wbs = exa.Workbooks; Excel.Workbook wb = wbs.Open(@"E:\1\aa.xls",Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing,Type.Missing);
for (int i = 1; i<=wb.Worksheets.Count;i++) { Message | |
|
|
|
|
|