摘要: //16进制字符串转换成10进制数: string str = "ff"; int nStr = Convert.ToInt32(str,16); //把10进制数转换成16进制字符串 int n = 10; string strHex = n.ToString("x"); 阅读全文
posted @ 2008-07-01 12:41 gllg 阅读(358) 评论(0) 推荐(0) 编辑
摘要: private string GetCard(string cid) { if (cid.Length == 15) { cid = per15To18(cid); } 阅读全文
posted @ 2008-07-01 11:58 gllg 阅读(319) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Data; using System.DirectoryServices; using System.Collections; using System.IO; namespace IISControl { /**//// /// CreateWebDir 的摘要说明。 /// public class I... 阅读全文
posted @ 2008-07-01 11:57 gllg 阅读(244) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.DirectoryServices; using System.Text.RegularExpressions; using System.Collections; namespace IISControlService { /*... 阅读全文
posted @ 2008-07-01 11:56 gllg 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 方式1: foreach (Control c in this.Repeater1.Controls) { HtmlInputCheckBox check = (HtmlInputCheckBox)c.FindControl("chkSelect"); if( check != null ) { check.Checked = true; } ... 阅读全文
posted @ 2008-07-01 11:56 gllg 阅读(184) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Runtime.InteropServices; using System.Management; namespace Hardware { /// /// Hardware_Mac 的摘要说明。 /// public class HardwareInfo { //取机器名 ... 阅读全文
posted @ 2008-07-01 11:24 gllg 阅读(196) 评论(0) 推荐(0) 编辑