我的天空,我的世界

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年12月3日

摘要: 如果Internet上的Web服务器由于和访客之间有无数代理、路由很难获得访客的真实信息,只能获得代理的IP。作为和访客同在一个网段的内网Web服务器就不存在此问题。获得访客IP:lbIP.Text = Request.UserHostAddress;获得访客主机名:IPAddress ip = IPAddress.Parse(Request.UserHostAddress); IPHostEnt... 阅读全文
posted @ 2009-12-03 18:44 eaglegrace 阅读(331) 评论(0) 推荐(0) 编辑

摘要: 1.验证输入是否为手机号码或电话号码 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<scripttype="text/javascript">2String.prototype.Trim=function(){3varm=this... 阅读全文
posted @ 2009-12-03 10:24 eaglegrace 阅读(142) 评论(0) 推荐(0) 编辑

摘要: 1、说明:复制表(只复制结构,源表名:a 新表名:b) (Access可用) 法一:select * into b from a where 1 1 法二:select top 0 * into b from a 2、说明:拷贝表(拷贝数据,源表名:a 目标表名:b) (Access可用) insert into b(a, b, c) select d,e,f from b; 阅读全文
posted @ 2009-12-03 09:54 eaglegrace 阅读(217) 评论(0) 推荐(0) 编辑