隐藏/显示 ajax 云 BalloonPopupExtender
我在文本框中使用 BalloonPopupExtender 来表示:“未知输入” 因为它是唯一一个允许我拥有一个面板,可以在其中插入我想要的任何控件的面板。
我希望通过按下按钮来显示它,并通过文本框中的文本更改来隐藏它。 我注意到 BalloonPopupExtender 没有可见性属性,只有 DisplayOnFocus、DisplayOnClick... 属性。但无法通过其他按钮或功能来控制它。
我如何隐藏/显示 BalloonPopupExtender?
I'm using the BalloonPopupExtender on a text box in order to say : "Unknown input"
because its the only one that allows me to have a panel in which i can insert whatever controls i want.
i want from a button push to show it and from a text change in the textbox to hide it.
i noticed there is no visibility property for BalloonPopupExtender, only the DisplayOnFocus, DisplayOnClick.... properties. but no way to control it from another button or function.
how can i hide/show the BalloonPopupExtender?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用下面的事件处理程序调用
Try using the below event handler call
好吧,我找到了答案:
在我写的 JavaScript 中:
event.cancelBubble = true;
'event.cancelBubble = true' 行做到了这一点。
另一件事 - 我按下了一个导致回发的按钮,所以即使弹出窗口显示它会在新页面打开时重置,所以看起来它不起作用。我刚刚创建了一个没有回发的按钮,它起作用了。
Ok i found the answer:
in the javascript i wrote :
event.cancelBubble = true;
the 'event.cancelBubble = true' row did the thing.
and another thing - i was pushing a button that caused a postback so even if the popup showed it would reset when the new page is up so it looked like it didn't work. i just created a button with no postback and it worked.