I have a situation where I need to set up triggers for an UpdatePanel on my webpage:
<asp:updatepanel id="updatepanel1" runat="server">
<contenttemplate>
<asp:label id="lblfoo" runat="server />
</contenttemplate>
<triggers>
<asp:asyncpostbacktrigger controlid="CormantRadTabStrip1" eventname="???" />
</triggers>
</asp:updatepanel>
Additionally, I have this snippet of JavaScript code:
function CloseAndSave() {
window.__doPostBack(CormantRadTabStrip1);
}
Furthermore, on the server-side, I have implemented the IPostBackEventHandler interface in a class called CormantRadTabStrip.
I'm unsure about what event name to use in this context. What should I set as the eventname?
Thank you
public class CormantRadTabStrip : RadTabStrip, IPostBackEventHandler
{
/// <summary>
/// This is called when the GlobalSettings dialog window closes.
/// </summary>
/// <param name="eventArgument">JSON passed to the event representing state of tabs</param>
void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
{
UpdateTabs();
}
}