开发者

ASP.NET Call Parent ModalPopupExtender (javascript or jquery)

I have an aspx page with an iFrame. The iFrame's src is set to a child aspx page.

I somehow need to display a modal popup form on the parent aspx page, to be shown when clicking a button on the child aspx page.

开发者_如何学编程

Something like:

Function ShowIt()
  {
   document.parent.getElemtentById("<%= modal.clientID %>").show();

          // Or

   $parent.find('modal').show();
  }

Any ideas would be greatly appreciated!

Thanks,

Jason


Set BehaviorID property value for a ModalPopupExtender and use this script : window.parent.$find('behaviorId').show();

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜