摘要:
public string GetMacAddress() { try { string mac = ""; ManagementClass mc = new Man... 阅读全文
摘要:
Process ps = new Process(); ps.StartInfo.FileName = textBox1.Text; //启动所选择的应用程序 ps.Start(); 阅读全文
摘要:
IPHostEntry iphost = Dns.GetHostEntry(txtDNS.Text);//解析并返回IPHostEntry对象 foreach (IPAddress ip in iphost.AddressList)//遍历IP地址 ... 阅读全文
摘要:
/// /// Retrieves the connected state of the local system /// /// Pointer to a variable that receives the connection de... 阅读全文
摘要:
string server = this.txtserver.Text; MailMessage Mail = new MailMessage(this.txtFrom.Text, this.txtGet.Text); Ma... 阅读全文
摘要:
string strl="";//存储编码 WebRequest request = WebRequest.Create(txtHtmlUrl.Text.Trim());//请求资源 WebResponse respons... 阅读全文
摘要:
转自 参考 1.<% %>用来绑定后台代码 如: < % for(int i=0;i<100;i++) { Reaponse.Write(i.ToString()); } %> 2.<%# %> 是在绑定控件DataBind()方法执行时被执行,用于数据绑定 如: < %# Container.Da 阅读全文
摘要:
邮箱验证:@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"网址@"http(s)?://([\w-]+\.)+[\w-]+(//[\w- .//?%&=]*)?"15位或18位身份证号码@"\d{17}[\d|X]|\d{15}"手机号@"1(47|(3... 阅读全文
摘要:
///随机数加密byte[] randomByte = new byte[16];//创建字节数组 //实例化加密随机数生成器 RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider(); ... 阅读全文