摘要: public bool IsExitCityByIP(string ip,out string city) { string[] ips = ip.Split('.'); double ipNum = Convert.ToDouble(ips[0]) * 16777216 + Convert.ToDouble(ips[1]) * 65536 + Convert.ToDouble(ips[2]) * 256 + Convert.ToDouble(ips[3]); ... 阅读全文
posted @ 2013-07-30 15:02 Token007 阅读(602) 评论(0) 推荐(0) 编辑
摘要: #region 方法一 判断网址输入格式 if (txtUrl.Text .Length >=7 && txtUrl.Text.Substring(0, 7) == "http://") { labUrl.Visible = false ; } else { labUrl.Visible = true; labUrl.Text = "格式为:http://..."; ... 阅读全文
posted @ 2013-07-30 15:00 Token007 阅读(2279) 评论(0) 推荐(0) 编辑