当我在网格视图中按编辑时,我的页面移至顶部 [英] When i press edit in grid view my page move to top

查看:112
本文介绍了当我在网格视图中按编辑时,我的页面移至顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在网格视图中按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"


这篇关于当我在网格视图中按编辑时,我的页面移至顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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