• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wjshan0808

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅
2015年1月13日
获取网卡地址信息
摘要: public string GetMacAddress() { try { string mac = ""; ManagementClass mc = new Man... 阅读全文
posted @ 2015-01-13 17:25 wjshan0808 阅读(166) 评论(0) 推荐(0)
启动所选择的应用程序
摘要: Process ps = new Process(); ps.StartInfo.FileName = textBox1.Text; //启动所选择的应用程序 ps.Start(); 阅读全文
posted @ 2015-01-13 16:31 wjshan0808 阅读(170) 评论(0) 推荐(0)
获取网络IP地址
摘要: IPHostEntry iphost = Dns.GetHostEntry(txtDNS.Text);//解析并返回IPHostEntry对象 foreach (IPAddress ip in iphost.AddressList)//遍历IP地址 ... 阅读全文
posted @ 2015-01-13 16:12 wjshan0808 阅读(153) 评论(0) 推荐(0)
检测网络状态
摘要: /// /// Retrieves the connected state of the local system /// /// Pointer to a variable that receives the connection de... 阅读全文
posted @ 2015-01-13 16:05 wjshan0808 阅读(180) 评论(0) 推荐(0)
邮件发送接收
摘要: string server = this.txtserver.Text; MailMessage Mail = new MailMessage(this.txtFrom.Text, this.txtGet.Text); Ma... 阅读全文
posted @ 2015-01-13 15:38 wjshan0808 阅读(209) 评论(0) 推荐(0)
网页内容下载
摘要: string strl="";//存储编码 WebRequest request = WebRequest.Create(txtHtmlUrl.Text.Trim());//请求资源 WebResponse respons... 阅读全文
posted @ 2015-01-13 15:21 wjshan0808 阅读(143) 评论(0) 推荐(0)
[转] asp.net <%%>&<%#%>&<%=%>&<%@%>&<%$%>用法区别
摘要: 转自 参考 1.<% %>用来绑定后台代码 如: < % for(int i=0;i<100;i++) { Reaponse.Write(i.ToString()); } %> 2.<%# %> 是在绑定控件DataBind()方法执行时被执行,用于数据绑定 如: < %# Container.Da 阅读全文
posted @ 2015-01-13 14:53 wjshan0808 阅读(197) 评论(0) 推荐(0)
正则表达式
摘要: 邮箱验证:@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"网址@"http(s)?://([\w-]+\.)+[\w-]+(//[\w- .//?%&=]*)?"15位或18位身份证号码@"\d{17}[\d|X]|\d{15}"手机号@"1(47|(3... 阅读全文
posted @ 2015-01-13 14:42 wjshan0808 阅读(112) 评论(0) 推荐(0)
加密器
摘要: ///随机数加密byte[] randomByte = new byte[16];//创建字节数组 //实例化加密随机数生成器 RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider(); ... 阅读全文
posted @ 2015-01-13 12:43 wjshan0808 阅读(209) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3