在.aspx页面的第一行(一般是第一行)加入SmartNavigation="true" ,如下<%@ Page language="c#" Codebehind="index.aspx.cs" SmartNavigation="true" AutoEventWireup="false" Inherits="myproj.index" %>
解决方案 »
- dhtmlxgrid在asp.net中如何保存数据?
- jquery post 无刷新连级下拉框问题
- 就这个一个显示问题,就能把人烦死..................
- 关于ASP.NET的Textbox的一个小问题
- IIS浏览文件出错,请高手解答。。在线等(20分)
- asp.net怎么读取客户端的cookie,如果没有则写入cookie
- 就 10 分了,紧急简单问题,关于 urlencode()
- 有关在DataGrid的模板列中套用DropDownList,然后在把数据从数据库中读取出来.绑定到DropDownList中.
- 如何在datagrid中删除一行时,弹出提示?
- 关于回车后关联相应按钮的问题,搞了我大半天,头都痛了(在线=================,高手帮忙)
- 请问使用SNK文件和不使用SNK文件的区别!
- 哪位大侠用过crystal report的呀?帮帮偶呀`~~
persisting the scroll position when moving from page to page.
persisting element focus between navigations.
retaining only the last page state in the browser's history.
Smart navigation is best used with ASP.NET pages that require frequent postbacks but with visual content that does not change dramatically on return. Consider this carefully when deciding whether to set this property to true.
此方法可以用于好多控件哦
<html>
<head>
...
<script>
function saveDivpos()
{
document.getElementByID("hdn_BodyPos").value = document.getElementByID("thebody").scrollTop;
}
</script>
function sa
</script>
</head>
<body id = "thebody" onscroll = "saveDivpos();">
<from>
...
<input type='hidden' runat='server' id='hdn_BodyPos'>
...
<script>
document.getElementByID("thebody").scrollTop = document.getElementByID("hdn_BodyPos").value ;</script>
</form>
</body>
<html>
此方法可以用于好多控件哦
<html>
<head>
...
<script>
function saveDivpos()
{
document.getElementByID("hdn_BodyPos").value = document.getElementByID("thebody").scrollTop;
}
</script></head>
<body id = "thebody" onscroll = "saveDivpos();">
<from>
...
<input type='hidden' runat='server' id='hdn_BodyPos'>
...
<script>
document.getElementByID("thebody").scrollTop = document.getElementByID("hdn_BodyPos").value ;</script>
</form>
</body>
<html>