摘要:
//16进制字符串转换成10进制数:
string str = "ff";
int nStr = Convert.ToInt32(str,16);
//把10进制数转换成16进制字符串
int n = 10;
string strHex = n.ToString("x"); 阅读全文
摘要:
private string GetCard(string cid)
{
if (cid.Length == 15)
{
cid = per15To18(cid);
} 阅读全文
摘要:
using System; using System.Data; using System.DirectoryServices; using System.Collections; using System.IO; namespace IISControl { /**//// /// CreateWebDir 的摘要说明。 /// public class I... 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Text; using System.DirectoryServices; using System.Text.RegularExpressions; using System.Collections; namespace IISControlService { /*... 阅读全文
摘要:
方式1: foreach (Control c in this.Repeater1.Controls) { HtmlInputCheckBox check = (HtmlInputCheckBox)c.FindControl("chkSelect"); if( check != null ) { check.Checked = true; } ... 阅读全文
摘要:
using System; using System.Runtime.InteropServices; using System.Management; namespace Hardware { /// /// Hardware_Mac 的摘要说明。 /// public class HardwareInfo { //取机器名 ... 阅读全文