UpdatePanel问题

编程入门 行业动态 更新时间:2024-10-27 07:27:36
本文介绍了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问题

本文发布于:2023-11-25 00:20:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627527.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:UpdatePanel

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!