本文介绍了如何在popupcontolextender中解决这个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 你好, 这里我给我的javascript。 当我使用时:modelpopupextenderhello,here i give my javascript.when i use: modelpopupextender<ajaxtoolkit:ModalPopupExtender ID="mpid" BehaviorID="myBID" runat="server"TargetControlID="img" PopupControlID="Pan1" CacheDynamicResults="true"DropShadow="true" CancelControlID="img"><script type="text/javascript" language="javascript">function showModal(index) {document.getElementById('<%=lab.ClientID%>').innerHTML = index;var modal = $find("myBID");modal.set_X(gx + 5); // Note: here, it invokes or goes to set_X function. here i am getting gx value (for ex: 75).modal.set_Y(gy);modal.show();}} 当我使用时:popupcontrolextender: asi使用了modelpopupextender,它不允许启用其他asp.net控件。一旦加速,所有其他asp.net控件都被禁用。所以我使用popupcontrolextender来解决以下问题。when i use : popupcontrolextender:asi used modelpopupextender , it is not allowing other asp.net control to be enable. once poped up , all other asp.net control got disabled. so i used popupcontrolextender to resolve below.<ajaxtoolkit:PopupControlExtender ID="PopEx" runat="server"TargetControlID="img" BehaviorID="myBID"PopupControlID="Pan1"Position="Bottom" /> 当我调试javascript函数时。 everthing works类似的,当我使用modelpopupextender。 但在这里, modal.set_X(gx + 5);注意:这里,我在这里也得到gx值(例如:75),但是,它不会调用或不调用set_X函数。因为这个我的弹出窗口无法正常工作。一旦它成为set_X函数,它就会起作用。 为什么它没有改动。怎么解决。需要帮助。when i debug tha javascript function.everthing works similar when i used modelpopupextender.but here,modal.set_X(gx + 5); Note: here, here also i am getting gx value (for ex: 75) , but,it does not invoke or does not go to set_X function. becuase of this my popup is not working. once if it goes set_X function, it will work.why it is not inovoking. how to solve. help needed.推荐答案 当我使用时:popupcontrolextender: asi使用了modelpopupextender,它不允许启用其他asp.net控件。一旦加速,所有其他asp.net控件都被禁用。所以我使用popupcontrolextender来解决以下问题。when i use : popupcontrolextender:asi used modelpopupextender , it is not allowing other asp.net control to be enable. once poped up , all other asp.net control got disabled. so i used popupcontrolextender to resolve below.<ajaxtoolkit:PopupControlExtender ID="PopEx" runat="server"TargetControlID="img" BehaviorID="myBID"PopupControlID="Pan1"Position="Bottom" /> 当我调试javascript函数时。 everthing works类似的,当我使用modelpopupextender。 但在这里, modal.set_X(gx + 5);注意:这里,我在这里也得到gx值(例如:75),但是,它不会调用或不调用set_X函数。因为这个我的弹出窗口无法正常工作。一旦它成为set_X函数,它就会起作用。 为什么它没有改动。怎么解决。需要帮助。when i debug tha javascript function.everthing works similar when i used modelpopupextender.but here,modal.set_X(gx + 5); Note: here, here also i am getting gx value (for ex: 75) , but,it does not invoke or does not go to set_X function. becuase of this my popup is not working. once if it goes set_X function, it will work.why it is not inovoking. how to solve. help needed. 这篇关于如何在popupcontolextender中解决这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-16 00:07