2012年6月10日
摘要: using System;using System.Collections.Generic;using System.Text;/*说明: 生成一个随机的密码,包括纯数字,纯字母,字母和数字,*作者: Zoonware*时间: 2009年8月10日*版本: 1.0*/public class RandomPassword{ /// <summary> /// 生成各类随机密码,包括纯字母,纯数字,带特殊字符等,除非字母大写密码类型,其余方式都将采用小写密码 /// </summary> /// <param name="pwdType"> 阅读全文
posted @ 2012-06-10 21:00 小白白小 阅读(224) 评论(0) 推荐(0)
  2012年5月16日
摘要: 1 http://www.sqlservercentral.com/articles/SQL+Puzzles/2878/ 2 3 CREATE PROCEDURE dbo.uspCreatePassword( 4 @UpperCaseItems SMALLINT--指定含有的大写个数 5 , @LowerCaseItems SMALLINT--指定含有的小写个数 6 , @NumberItems SMALLINT--指定含有的数字个数 7 , @SpecialItems SMALLINT)--指定含有的特殊字符个数 8 AS ... 阅读全文
posted @ 2012-05-16 21:59 小白白小 阅读(398) 评论(0) 推荐(0)
  2012年4月20日
摘要: 如何禁止删除某个文件夹(如:d:\picture)C# codeFile.SetAttributes(folderBrowserDialog1.SelectedPath, FileAttributes.Hidden|FileAttributes.System); 阅读全文
posted @ 2012-04-20 22:57 小白白小 阅读(516) 评论(0) 推荐(0)
  2012年3月4日
摘要: a = a + b;b = a - b;a = a - b; 阅读全文
posted @ 2012-03-04 17:06 小白白小 阅读(123) 评论(0) 推荐(0)
  2012年3月2日
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-03-02 22:14 小白白小 阅读(11) 评论(0) 推荐(0)
  2012年2月29日
摘要: System.Drawing.Image image = null; try { string fileName = imgs[i]; string filePath = commonpath + imgs[i]; string localFile = localpath + imgs[i];HttpWebRequest webrequest = (HttpWebRequest)WebRequest.Create(filePath); HttpWebResponse webresponse = (HttpWebResponse)webrequest.GetResponse(); if (web 阅读全文
posted @ 2012-02-29 18:10 小白白小 阅读(577) 评论(0) 推荐(0)
摘要: private Image GetImage(string url) { if (string.IsNullOrEmpty(url)) return null; WebClient webClient = new WebClient(); MemoryStream stream = null;try { byte[] byteImage = webClient.DownloadData(url); stream = new MemoryStream(byteImage); Image image = (Image)new Bitmap(stream); return image; } catc 阅读全文
posted @ 2012-02-29 18:04 小白白小 阅读(155) 评论(0) 推荐(0)