May 20, 2009, 5:02 PM
Can't call AjaxMethod in UserControl
I have the following code that is a Usercontrol. This Usercontrol is placed in another panel. I won't know what the actual ID of this control will be from within the control. How do I properly reference the AjaxMethod Save in this case?
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AgencyPanel.ascx.vb" Inherits="AgencyPanel" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<ext:Button ID="Button1" runat="server" Text="Submit">
<Listeners>
<Click Handler="Coolite.AjaxMethods.?.Save();" />
</Listeners>
</ext:Button>