attempt 2: removed the first one and assumed that the [DirectMethod] sets yes.Listeners.Click.Handler = "Ext.net.DirectMethods.Save();"
第一次失败,无法定位命名空间,第二次失败,因为“对象不支持此属性或方法
if (comp is TextField) ((TextField)comp).Listeners.Focus.Handler = "Ext.net.DirectMethods.clickOnObjectvoid clickOnObject() Response.Write("hwerlkjasdf;ljasdf");但是,该方法似乎没有添加到javascript中的Ext.net.DirectMethods