当我在网格视图中按编辑时,我的页面移至顶部
问题描述:
当我在网格视图中按Edit(编辑)时,我的页面移至顶部.我希望页面位于同一位置.我不想再次滚动到那里,位置应该固定..当我单击编辑或更新等时....
When i press edit in grid view my page move to top. I want page to be on same position. i dont want again to scroll there position should be fixed.. when i click on edit or either update etc etc....
答
老板! > 您必须添加
MaintenanceScrollPositionOnPostback ="true"
喜欢
<![CDATA [<%@页面语言="C#" MaintenanceScrollPositionOnPostback ="true" AutoEventWireup ="true" Inherits ="PropertyManagement" Codebehind ="PropertyManagement.aspx.cs"%>
在页面指令中.
回传后它会保持您的滚动位置.
hi boss!
you have to add
MaintainScrollPositionOnPostback="true"
like
<![CDATA[<%@ Page Language="C#" MaintainScrollPositionOnPostback="true" AutoEventWireup="true" Inherits="PropertyManagement" Codebehind="PropertyManagement.aspx.cs" %>
in page directive.
It maintains your scroll position after postback.
并且您可以在页面指令中使用smartnavigation = true
And you can use smartnavigation=true in page directive
我同意第一个解决方案.您应该添加
MaintenanceScrollPositionOnPostback ="true"
I agree with the first solution. You should add
MaintainScrollPositionOnPostback="true"