I have a TreeView control in AJAX.NET 2.0 / C#. What I'm trying to do is set a trigger on an UpdatePanel that comes from itself. Is this possible? Here's what I'm trying to do but gives a compile error saying it can't find the event name:
<asp:UpdatePanel ID="TreeUpdatePanel1" runat="server" UpdateMode="Conditional">
<asp:TreeView ID="TreeView1" runat="server"
<asp:AsyncPostBackTrigger ControlID="TreeView1" EventName="ExpandNode" />
The error I get is this:
Could not find an event named 'ExpandNode' on associated control 'TreeView1' for the trigger in UpdatePanel 'TreeUpdatePanel1'.
Can I trigger a control with an event from itself?