I have the following code:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="rlpMain">
<asp:ImageButton ID="ImageButton1" runat="server"
OnClientClick="return confirm('Are you sure?');" />
</telerik:RadAjaxPanel>
This code does not fire my code behind event which I have written in a .vb file.
Pls help me….
One may need to provide a confirmation dialog to the users and initiate an AJAX request if accepted. Confirmation using standard post backs often looks like this:
The OnClientClick should be changed a bit to work with AJAX:
When the button is ajaxified by added the necessary AJAX setting to RadAjaxManager or when the button is placed within RadAjaxPanel control.
Alternatively, the OnRequestStart client-side event could be used to implement more complex logic. Here is a sample script: