W3CHINA Blog首页    管理页面    写新日志    退出


«December 2025»
123456
78910111213
14151617181920
21222324252627
28293031

 

公告

Back Today!

Hold on~ 

Come on~

最新日志

正规判断email
文件md5值
javascript:操作url参数的函
C#淡出淡入窗体
VSS 6 admin用户的密码破解
没用过的东东(sql)
初学ajax(C#)
页面开发的准则一
textbox忽略html验证
这点破东东,老是记不住,nnd!

最近的评论

回复:初学ajax(C#)
回复:C#淡出淡入窗体
回复:ivr的部分动作
回复:textbox忽略html验证
回复:VSS 6 admin用户的密码破
回复:VSS 6 admin用户的密码破
回复:VSS 6 admin用户的密码破
回复:VSS 6 admin用户的密码破
回复:excel中的工作表名sheetn
回复:VSS 6 admin用户的密码破

连接




专题

首页(39)
IVR(4)
SQLSERVER(12)
AJAX(0)
.net(13)
小技巧(4)
english(2)

留言

签写新留言

请教

统计

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
   

阅读全文(2634) | 回复(0) | 编辑 | 精华 | 删除


[.net]文件md5值
执著 发表于 2007/3/4 21:35:01

      public static string md5_hash(string path)
        {
            try
            {
                FileStream get_file = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
    &nb

阅读全文(2945) | 回复(1) | 编辑 | 精华 | 删除


[.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用户的密码破解
执著 发表于 2006/9/4 11:17:51

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]textbox忽略html验证
执著 发表于 2006/8/14 11:24:29

validateRequest="false" asp.net


[.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]按正则式查找文本文件中所有符合的字符
执著 发表于 2005/8/8 23:58:09

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

« 1 2 »



 

 

 


站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.626 second(s), page refreshed 144820728 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号