页面刷新后指向 [英] pointing after page refreshing

查看:60
本文介绍了页面刷新后指向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很长的asp.net页面,在页面的下端有一个下拉列表.当下拉菜单的"SelectedIndexChanged"事件发生时,页面刷新并移至页面顶部,因此我必须向下滚动才能查看结果.因此,在页面刷新后,我需要指向dropdownlist部分.请让我知道该怎么做.

i have a lengthy asp.net page and dropdownlists at the lower end of the page. when the ''SelectedIndexChanged'' event of the dropdown occurs, the page refreshes and moves to the top of the page so i have to scroll down to view the result. so i need point to the dropdownlist portion after page get refreshed. Kindly let me know how this to be done.

推荐答案

如果您不满意CG提出的建议,请尝试MaintainScrollPosition page属性.

另外,您可以在onchange事件触发之前跟踪客户端的滚动位置.在页面刷新后,将滚动位置恢复到上次存储的位置.
If you are not comfortable doing what CG has suggested, then try MaintainScrollPosition page attribute.

Also, you can keep track of the scroll position on client side before the onchange event fires. Restore the scroll position back to what you stored last time after the page refresh.


您可以在HTML中放置标记,然后您的URL可以指向一个.那是基本的HTML,也许您需要一本书?
You can put markers in your HTML and then your URL can point to one. That''s basic HTML, perhaps you need a book ?


这篇关于页面刷新后指向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆