本文介绍了UpdatePanel问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过单击更新面板内部的按钮来显示更新面板外部的div.
How to show a div which is outside the update panel from a button click which is inside the update panel
推荐答案您可以通过javascript轻松完成此操作.单击您的按钮后,从服务器端注册启动脚本.该javascript函数将显示div. 另一个,如果您的div是服务器端,则可以将其动态添加到updatepanel,因此,一旦您的updatepanel得到更新,您的div也将被更新.只是您需要在按钮单击事件上显示它 看看链接,知道如何实现此目标 点击此处 单击此处2 You can do this by javascript easily. Register a startup script from server side, when your button is clicked. And that javascript function, will display the div. Another, if your div is server side, you can add this to updatepanel dynamically, so once your updatepanel gets updated, you div will also be updated. Just you need to display it on button click event Have a look to the links, to know, how to achieve this Click here Click here 2
除了提供的选项通过Brij,您还可以执行以下操作: 将div放在另一个更新面板中.当您单击上一个更新面板的按钮时,可通过代码将此更新面板称为更新. Apart from options provided by Brij, you can also do something like: Put the div in another update panel. Call this update panels update via code when you click button of previous update panel.
更多推荐
UpdatePanel问题
发布评论