手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp 获取地址栏参数代码
asp 获取地址栏参数代码
摘要:asp获取地址栏参数代码============================================函数名:JoinChar作用...

asp 获取地址栏参数代码
============================================

函数名:JoinChar
作 用:向地址中加入 ? 或 &
参 数:strUrl ----网址
返回值:加了 ? 或 & 的网址
pos=InStr(1,"abcdefg","cd")
则pos会返回3表示查找到并且位置为第三个字符开始。
这就是“查找”的实现,而“查找下一个”功能的
实现就是把当前位置作为起始位置继续查找。
============================================

function JoinChar(strUrl)
if strUrl="" then
JoinChar=""
exit function
end if
if InStr(strUrl,"?")<len(strUrl) then
if InStr(strUrl,"?")>1 then
if InStr(strUrl,"&")<len(strUrl) then
JoinChar=strUrl & "&"
else
JoinChar=strUrl
end if
else
JoinChar=strUrl & "?"
end if
else
JoinChar=strUrl
end if
end function

【asp 获取地址栏参数代码】相关文章:

asp获取数据库的连接属性的方法

asp 过滤数组重复数据

asp提示无效使用 Null: Replace

asp 查询数据代码

获取字符中中文首字字符

asp 读取 json 列表解决思路

ASP下实现自动采集程序及入库的代码

asp实现获取MSSQL数据库表指定条件行数的函数

用asp实现无组件生成验证码的方法2种

在asp中通过getrows实现数据库记录分页的一段代码

精品推荐
分类导航