Ext.Net: parent.Ext.net.DirectMethods.NewCard_Click();

妖精的绣舞 提交于 2020-01-16 01:07:06

问题


I have a project.When I click the button inside mainpage, loading newcard.aspx file.inside this file I have a button something like this,

  <ext:Button ID="Button1" runat="server" Text="Ekle" Icon="GroupAdd">
     <Listeners>
     <Click Handler="parent.Ext.net.DirectMethods.NewCard_Click();"></Click>
     </Listeners>
     </ext:Button>

NewCard_Click();methon defined inside the mainpage.aspx.(which loadind anaother aspx file) but this event not fired,Did I miss something?Should I add another something?


回答1:


Earlier versions used

    Ext.net.DirectMethods.MethodName()

Which would make

    window.parent.Ext.net.DirectMethods.MethodName()

The correct answer, however it seem that changed in the latest version, so the answer is

    window.parent.App.direct.MethodName()


来源:https://stackoverflow.com/questions/17589313/ext-net-parent-ext-net-directmethods-newcard-click

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!