开发者

Cannot get ID of modalpopup in javascript

开发者 https://www.devze.com 2023-02-27 02:06 出处:网络
I have an update panel in my page. But modal popup is outside of that update panel. When i try to get modal popup from javascript either using document.getElementById or $g开发者_StackOverflow社区et o

I have an update panel in my page. But modal popup is outside of that update panel. When i try to get modal popup from javascript either using document.getElementById or $g开发者_StackOverflow社区et or $find , it returns null, i.e. it cannot find that modal popup.

rough structural position of update panel and modal popup

<update panel>
</update panel>

<modal popup>
</modal popup>

<update panel>
</update panel>

<java script>
</java script>

How to resolve this issue.


This work well for me.

 var ModalAction = '<%= ActionModalPopup.ClientID %>';
 $find(ModalAction).hide();
0

精彩评论

暂无评论...
验证码 换一张
取 消