如何在asp.net中更新updatePanel控件 [英] how to update updatePanel control in asp.net

查看:84
本文介绍了如何在asp.net中更新updatePanel控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个updatepanel和两个按钮。我想这样做:当我点击button1然后updatepanel1所有控件应该刷新,当我点击button2然后updatepanel2所有控件应该刷新在asp.net。请任何人在使用ajax时我更加新鲜。



提前感谢

i have two updatepanel and tow buttons. i want to do like this: when i click on button1 then updatepanel1 all control should be refresh, and when i click on button2 then updatepanel2 all control should be refresh in asp.net. please anyone i am totally fresher when using ajax.

thanks in advance

推荐答案

致电 UpdatePanel.Update方法 [ ^ ]。


你需要使用UpdatePanel的Update方法。



一个简单的解决方案,例如:



在Asp.Net中更新UpdatePanel


希望有所帮助:)
You need to use the Update Method of the UpdatePanel.

A simple solution here with example:

Update UpdatePanel in Asp.Net

Hope it helps :)


请参阅以下链接。



http://www.dotnetgallery.com/kb/resource4-Programmatically-Update-the-UpdatePanel-using-ASPNET.aspx


这篇关于如何在asp.net中更新updatePanel控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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