在Updatepanel更新上,updatepanel之外的所有内容均消失 [英] On Updatepanel update, everything outside the updatepanel disappears

查看:104
本文介绍了在Updatepanel更新上,updatepanel之外的所有内容均消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

针对如此广泛而笼统的问题的道歉,但是我真的不能给出具体的代码示例,因为从研究中可以看出,该问题对于我正在研究的特定页面是唯一的,如果我知道该怎么做,做复制它,那么我很可能就可以修复它。

Apologies for such a broad, sweeping question, but I can't really give specific code examples because as far as I can tell from research this problem is unique to the particular page I'm working on and if I knew what to do to replicate it then I'd most likely be able to fix it.

我有一个本质上绑定的asp.net vb(使用ajaxcontroltoolkit v4的v3.5)页面一些直接的SQL数据库数据到gridview。

I have an asp.net vb (v3.5 using the ajaxcontroltoolkit v4) page essentially binding some straight forward SQL database data to a gridview.

gridview位于更新面板中,只要我执行任何会导致在更新面板内发生回发的操作,更新面板外的所有内容都会消失。

The gridview's in an update panel and whenever I do anything that causes a postback inside the update panel, everything outside the update panel vanishes. The update panel IS updating correclty.

没有条件更新,只是开箱即用的更新面板。

There's no conditional updating, just an 'out of the box' update panel.

所有其他ajax功能均正常运行,例如过滤后的文本框扩展程序和带有标注扩展程序的验证,因此我认为这不是基本的脚本参考错误。

All other ajax functionality is working correctly, such as filtered textbox extenders and validation with callout extenders, so I don't think it's a basic script reference error.

我正在使用javascript和jquery来动态修改updatepanel中的控件。

I'm making use of javascript and jquery to modify controls on the fly that are within the updatepanel.

一个用于开发的独立页面,但为了测试此问题,我将其放入母版页的contentplaceholder中。现在更新时,contentplaceholder中的所有其他内容都消失了,而保留了masterpages标头等。

It was a standalone page for development but for testing this problem I put it into a contentplaceholder on a masterpage. Now on updating, everything else in the contentplaceholder disappears, leaving the masterpages header etc present.

如果您以前从未遇到过这个特殊问题,您能想到我可以去调试吗?

If you haven't come across this particular problem before, can you think of how I could go about debugging it?

如果您有任何想法,可能足以使我走上正确的道路。

If you have any ideas at all, it might be enough to set me down the right path.

非常感谢。

推荐答案

感谢您抽出宝贵的时间提出建议。 Schneiders。

Thanks for taking the time to make suggestions Mt. Schneiders.

最后...哈哈,令人尴尬...我已经做了6年了,现在已经关闭了updatepanel在关闭从面板上方开始的div之前。

In the end...haha wow, embarrassing... I've been doing this for the best part of 6 years now and I was closing my updatepanel before closing a div that started above the panel.

简单修复。好极了!再次感谢。

Simple fix. Yay! Thanks again.

这篇关于在Updatepanel更新上,updatepanel之外的所有内容均消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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