给个例子!!

miqier1209 2001-08-03 10:48:16
有谁能给个ASP调自己写的函数的例子?
急用!!!
...全文
187 14 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
skt985 2002-01-11
  • 打赏
  • 举报
回复
35294关注! :)
miqier1209 2001-08-24
  • 打赏
  • 举报
回复
我自己做完了,给点分感谢大家吧
gq 2001-08-03
  • 打赏
  • 举报
回复
<!-- #INCLUDE FILE="common.asp" -->
<%
response.redirect selDest(typ, strQuery)
%>
common.asp
<%
function selDest(id, strQuery)
dim dateVal, lstType, destPage
select case id
case 0
destPage="event_today.asp"
case 1
destPage="event_day.asp"
case 2
destPage="event_week.asp"
case 3
destPage="event_month.asp"
case 4
destPage="event_year.asp"
end select
selDest=destPage&"?"&strQuery
end function
%>
这是我用过的东东。
gq 2001-08-03
  • 打赏
  • 举报
回复
不用call
miqier1209 2001-08-03
  • 打赏
  • 举报
回复
给个例子,马上给分!!!
miqier1209 2001-08-03
  • 打赏
  • 举报
回复
不用call吗?
miqier1209 2001-08-03
  • 打赏
  • 举报
回复
<!-- #INCLUDE FILE="function.asp" -->
对,我刚才少写了
我的函数是function.asp
<%
function register(a,b,c)
......
end func
%>
********************************
card.asp

<!-- #INCLUDE FILE="function.asp" -->
<%
call register(a,b,c)
%>
hitwd2000 2001-08-03
  • 打赏
  • 举报
回复
比如说function中有max(x,y)函数
card.asp中可以写成max(5,6)。
gq 2001-08-03
  • 打赏
  • 举报
回复
<!-- #INCLUDE FILE="function.asp" -->
直接调用就可以了。你少了个“#”号。
miqier1209 2001-08-03
  • 打赏
  • 举报
回复
我单独写了一个function.asp的文件
在card.asp文件中使用<!-- include file="function.asp" -->来调用。
请帮我写一下card.asp文件中的调用。
miqier1209 2001-08-03
  • 打赏
  • 举报
回复
什么意思,能作一下说明吗?
gq 2001-08-03
  • 打赏
  • 举报
回复
<%
function getCatList(id)
dim dd
dd=id
getCatList=dd
end function
response.write getgatlist(555)
%>

gq 2001-08-03
  • 打赏
  • 举报
回复
<%
ction getCatList(id)
dim dd
dd=id
getCatList=dd
end function
response.write getgatlist(555)
%>
miqier1209 2001-08-03
  • 打赏
  • 举报
回复
我的end function 不能用,有谁能指点一下

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧