识别wap和web客户端浏览器
2009-09-11 11:17
246 查看
asp代码
<%
'+--------------------------------------------------------+
'| 识别WAP或WEB客户端浏览器 (asp版本)
'| 作者: 石头 (stonemx@163.com | www.stonemx.com)
'+--------------------------------------------------------+
Option Explicit
dim GuestUrl
if instr(Request.ServerVariables("http_accept"),"wap")>0 then
GuestUrl="http://WAP网站地址"
else
GuestUrl="http://WEB网站地址"
end if
Response.Redirect(GuestUrl)
%>
<%
'+--------------------------------------------------------+
'| 识别WAP或WEB客户端浏览器 (asp版本)
'| 作者: 石头 (stonemx@163.com | www.stonemx.com)
'+--------------------------------------------------------+
Option Explicit
dim GuestUrl
if instr(Request.ServerVariables("http_accept"),"wap")>0 then
GuestUrl="http://WAP网站地址"
else
GuestUrl="http://WEB网站地址"
end if
Response.Redirect(GuestUrl)
%>
相关文章推荐
- web开发中客户端脚本产生的浏览器缓存问题
- 用WebView访问证书有问题的SSL网页以及在文件关联窗口中选择浏览器后,浏览器如何识别到该连接地址
- SignalR 实现web浏览器客户端与服务端的推送功能
- WEB前端——使用Javascript判断客户端浏览器类型
- 客户端中webview的网页判断是不是在客户端内部,还是在浏览器打开
- Web开发兼容性系列文章(二):根据userAgent值的特性判断客户端设备及浏览器类型
- JavaScript权威指南_91_第13章_Web浏览器中的JavaScript_13.1-客户端JavaScript
- SignalR 实现web浏览器客户端与服务端的推送功能
- WEB客户端:浏览器和页面
- android开发我的新浪微博客户端-OAuth认证过程中用WebView代替原来的系统自带浏览器
- asp.net实现识别客户端浏览器或操作系统
- WebView支付宝wap支付转支付宝客户端支付
- android开发我的新浪微博客户端-OAuth认证过程中用WebView代替原来的系统自带浏览器
- net控件中数据导到Excel的格式 首先,我们了解一下excel从web页面上导出的原理。当我们把这些数据发送到客户端时,我们想让客户端程序(浏览器)以excel的格式读取它,所以把mime类型设为:application/vnd.ms-excel,当excel读取文件时会以每个cell的格式呈现数据,如果cell没有规定的格式,则excel会以默认的格式去呈现该cell的数据。这样就给我们提供了自定义数据格式的空间,当然我们必须使用excel支持的格式。下面就列出常用的一些格式: 1) 文本
- JavaScript 客户端JavaScript之 Web浏览器的环境
- android开发我的新浪微博客户端-OAuth认证过程中用WebView代替原来的系统自带浏览器
- 浏览器识别、客户端检测
- web页面引用OCX控件,客户端浏览器设置
- asp.net实现识别客户端浏览器或操作系统
- WEB前端——使用Javascript判断客户端浏览器类型