如何asp知道当前的网页的名字?

esri 2003-09-12 02:57:32
如index.asp,
我应该如何取呢
...全文
83 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
yt7xw 2003-09-12
  • 打赏
  • 举报
回复
如果这个文件在帧里面,还能读出主页面地址吗?
例:1.htm
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="2.htm" name="topFrame" scrolling="NO" noresize >
<frame src="3.asp" name="mainFrame">
</frameset>
<noframes><body>

</body></noframes>
</html>

现在在3.asp中写一个代码读出当前页面是 1.htm,如何做?用上面的方法只能读出是3.asp
nonhero 2003-09-12
  • 打赏
  • 举报
回复
<%
sCurrentFile = Request.ServerVariables("SCRIPT_NAME")
%>
aryou 2003-09-12
  • 打赏
  • 举报
回复
request.servervariables("script_name")

28,391

社区成员

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

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