开发者

Cannot get ID of modalpopup in javascript

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜