调用经典 ASP 从 URL 获取书签值
例如,如果我打电话,http://www.mysite.asp?p1 =2&p2=3#Bookmark 在“经典”ASP 生成输出后,浏览器是否调用该#Bookmark?看起来它没有通过,浏览器没有跳到书签。我怀疑它被 ASP 或浏览器“抛弃”。这在 FF 和 IE6 上的作用相同。有想法吗?感谢堆栈溢出!
If I'm calling for example, http://www.mysite.asp?p1=2&p2=3#Bookmark Does the browser invoke that #Bookmark after the "classic" ASP generates output? It appears that it's not coming thru, the browser doesn't jump down to the bookmark. I am suspicious it's getting "thrown out" by either ASP or the browser. This acts the same on both FF and IE6. Ideas? Thanks Stackoverflow!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否在 HTML 标记中设置了锚点名称?
要使此#Bookmark 正常工作,您必须有一个链接
。
请参阅 HTML 链接 - 名称属性。
基本注释:
提示:如果浏览器未找到指定的命名锚点,则会转到文档顶部。没有错误发生。
更多信息:
http://thedailyreviewer.com/dotnet/view/bookmark -anchors-and-vbnet-103202803
http://www.velocityreviews .com/forums/t96249-can-you-jump-to-an-anchor-on-postback.html
Have you set the anchor name in the HTML markup?
For this #Bookmark to work you must have a link
<a name="Bookmark" ... ></a>
.See HTML Links - The name Attribute.
Basic notes:
Tip: If a browser does not find the named anchor specified, it goes to the top of the document. No error occurs.
More on this:
http://thedailyreviewer.com/dotnet/view/bookmark-anchors-and-vbnet-103202803
http://www.velocityreviews.com/forums/t96249-can-you-jump-to-an-anchor-on-postback.html