如果控件不在updatepanel中,我们如何在部分渲染中更改控件属性? [英] how can we change the control property in partial rendering if control not in updatepanel?

查看:55
本文介绍了如果控件不在updatepanel中,我们如何在部分渲染中更改控件属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果控件不在updatepanel中,我们如何在部分渲染中更改控件属性?

how can we change the control property in partial rendering if control not in updatepanel?

推荐答案

简单的答案是将其放在自己的内部UpdatePanel或将其移动到您拥有的面板上.

另一种方法是使用自己的ajax解决方案来解决该问题,然后使用 jQuery [ ^ ]可能会派上用场.

问候
Espen Harlinn
The easy answer is to either put it inside it''s own UpdatePanel or move it to the one you''ve got.

The alternative is to roll your own ajax solution to the problem, and then jQuery[^] will probably come in handy.

Regards
Espen Harlinn


其中一种方法:
这里介绍一下这篇文章: Ajax更新后(通过更新面板)对页面控件的JavaScript访问 [ ^ ]

一旦更新面板的部分渲染即将完成,您就可以通过Javascript访问该控件.更改所需的属性,它将反映出来.
One of the ways to do it:
Here have a look at this article: JavaScript Access to Page Controls after Ajax Update (via Update Panel)[^]

You can access the control via Javascript once Update Panel''s partial rendering is about to finish. Change the needed property and it will reflect.


您可以使用ScriptManager的RegisterDataItem()方法更新控件,该控件位于updatepanel之外.有关详细信息
看看
You can update the control, which is outside the updatepanel using RegisterDataItem() method of ScriptManager. For details
Have a look


这篇关于如果控件不在updatepanel中,我们如何在部分渲染中更改控件属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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