ASP.net中PostBack后如何保持垂直位置
来源:互联网 发布:备案域名买卖交易平台 编辑:程序博客网 时间:2024/05/22 01:48
When web pages are posted back to the server, by default user is returned to the top of the page. On a large web page, you might have a requirement to scroll down the user automatically to the last position on the page.
MaintainScrollPositionOnPostBack page property can be used to achieve this in one of the following ways.
Application level: To set the property by default for all pages in the website, open web.config and add the attribute to the pages node.
<pages maintainScrollPositionOnPostBack="true">
Page Level: for a particular page, open the aspx and set the property
<%@ Page MaintainScrollPositionOnPostback="true" ...
Code level: to set the property programmatically
Page.MaintainScrollPositionOnPostBack = true;
Hope this helps.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/Python/archive/2009/06/17/4275953.aspx
- ASP.net中PostBack后如何保持垂直位置
- ASP.net中PostBack后如何保持垂直位置
- 如何在ASP.NET中PostBack后保持页面的位置(滚动条位置)
- 如何在ASP.NET中PostBack后保持页面的位置(滚动条位置)
- ASP.NET postback(回发)后如何保持网页的位置
- ASP.NET postback(回发)后如何保持网页的位置
- ASP.NET 2.0 PostBack请求后保持页面滚动条的位置
- 如何作到在页面POSTBACK刷新后,使LISTBOX的滚动条仍然保持上次的位置
- asp.net 回执(postback)后定位问题
- ASP.NET页面回传后保持当前的滚动(垂直)位置
- ASP.NET页面如何引发PostBack事件
- ASP.NET中页面回传后保持滚动条的位置
- asp.net中关于密码框在postback后会消失的办法
- web developer tips (75):PostBack后保持滚动条的位置
- web developer tips (75):PostBack后保持滚动条的位置
- Asp.Net的PostBack
- asp.net template item 里 id 在postback后 不一致
- asp.net 滚动条位置保持不变
- asp.net中使用基于角色的身份Forms验证 (2)
- asp.net中使用基于角色的身份Forms验证 (3)
- 修改Debian自动更新路径的方法
- 在gae上搞了个blog,用gae开发太困难了
- u-boot移植
- ASP.net中PostBack后如何保持垂直位置
- struts date显示问题 和存入数据库格式
- 数据库水平切分的实现原理解析(转载)
- Java连接池 BoneCP 0.7.0
- hibernate 缓存——数据持久化
- [SQL Server]内存和Buffer Pool
- Javascript - Select操作大集合
- Flex/As示例:取得系统当前年月日,并转换成String
- eclipse中Android模拟器启动过一段时间DDMS假死问题