ASP Dot net Update面板和Auto PostBack属性 [英] ASP Dot net Update panel and Auto PostBack property

查看:91
本文介绍了ASP Dot net Update面板和Auto PostBack属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的asp .net项目中,我使用了更新面板。更新面板中的文本框属性AutoPostback =True。问题是,当我单击文本框时,页面会跳转并转到页面顶部。我怎样才能解决这个问题。请帮帮我。

In my asp .net project I have used update panel. The textbox property AutoPostback="True" in the update panel. The problem is that when I click the textbox the page jump and go to go to the top of the page. How can I sol the problem. Please help me.

推荐答案

在web.config文件的pages标签中添加属性maintainScrollPositionOnPostBack =true

如下所示

< pages maintaincrollpositiononpostback =true>< / pages>
Add the property maintainScrollPositionOnPostBack="true" in pages tag of web.config file
like as following
<pages maintainscrollpositiononpostback="true"></pages>


hi,



使更新模式在更新面板上有条件。

然后在cording中你可以手动更新更新面板。





Make the update mode to conditional on update panel.
Then in cording you can manually update the update panel.

updatepanel1.update();





谢谢,



Thanks,


这篇关于ASP Dot net Update面板和Auto PostBack属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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