I have a button inside a RadAjaxPanel, when the button is clicked. There is a server-side call. I want it to execute a Javascript function defined in the page by using RegisterStartupScript . However, it is not working. If I remove RadAjaxPanel or move the button beyond of the panel, it does work. The client code is just like following
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1"> <div id="app_layer" runat="server"> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> </div> </telerik:RadAjaxPanel> <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" />
Your help is appreciated.
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1"> <div id="app_layer" runat="server"> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> </div> </telerik:RadAjaxPanel> <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" />
Your help is appreciated.