你能在回发时跳到锚点吗? [英] Can you jump to an anchor on postback?
本文介绍了你能在回发时跳到锚点吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的页面上有一个锚点:
< a name =" monkey">< / a>
我可以通过重定向轻松地进入此目的,但有没有办法在回发时跳转到这个
?
-Darrel
I have an anchor on my page:
<a name="monkey"></a>
I can easily go to this via a redirect, but is there a way to jump to this
on postback?
-Darrel
推荐答案
使用SmartNavigation退房返回页面上正确的位置
回复后
HTH
Ollie Riches
" darrel" <无***** @ hotmail.com>在消息中写道
news:em ************** @ TK2MSFTNGP15.phx.gbl ...
check out using SmartNavigation for returning to the correct place on a page
after a post back
HTH
Ollie Riches
"darrel" <no*****@hotmail.com> wrote in message
news:em**************@TK2MSFTNGP15.phx.gbl...
我有一个锚点我的页面:
< a name =" monkey">< / a>
我可以通过重定向轻松转到此,但有没有办法在回发时跳到这个
-Darrel
I have an anchor on my page:
<a name="monkey"></a>
I can easily go to this via a redirect, but is there a way to jump to this
on postback?
-Darrel
当然。只需将JavaScript添加到执行重定向的页面即可。 -
< script type =" text / javascript"><! -
document.location =" thispage.aspx#bookmark" ;;
// - >< / script>
-
HTH,
< br $>
Kevin Spencer
Microsoft MVP
..Net开发人员
无论是关注者还是贷方都不是。
darrel <无***** @ hotmail.com>在消息中写道
news:em ************** @ TK2MSFTNGP15.phx.gbl ...
Sure. Just add a JavaScript to the page that does the "redirect" -
<script type="text/javascript"><!--
document.location = "thispage.aspx#bookmark";
// --></script>
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
"darrel" <no*****@hotmail.com> wrote in message
news:em**************@TK2MSFTNGP15.phx.gbl...
我有一个锚点我的页面:
< a name =" monkey">< / a>
我可以通过重定向轻松转到此,但有没有办法在回发中跳转到这个
-Darrel
I have an anchor on my page:
<a name="monkey"></a>
I can easily go to this via a redirect, but is there a way to jump to this
on postback?
-Darrel
使用SmartNavigation退房后返回到
页面上的正确位置
check out using SmartNavigation for returning to the correct place on a page after a post back
哈!谷歌的第一个结果是:
智能导航更多的是痛苦而不是好。
; o)
我会调查它,虽然我在想凯文的答案可能就是解决方案。
不是javascript的忠实粉丝,但由于这是在内联网上,它的价格不是很高。
-Darrel
Ha! The first result from google is:
"Smart navigation is more of a pain than good."
;o)
I''ll look into it, though I''m thinking Kevin''s answer might be the solution.
Not a big fan of javascript for this, but since this is on an intranet, it''s
not as big of a deal.
-Darrel
这篇关于你能在回发时跳到锚点吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文