I have the following code in a server side button click event:
<code>
RadAjaxManager1.ResponseScripts.Add("radconfirm('No more EDLogs exist for the remaining Chart files. Do you want to be redirected to the page where you can enter more EDLogs?', confirmCallBackEDLogFn);");
</code>
I have the following code in my html:
<code>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
</telerik:RadWindowManager>
<script type="text/javascript">
function confirmCallBackChartFn(arg)
{
if(arg == "Yes")
{
window.location.href = "../scan/viewchart.aspx"; // Set the url to redirect
}
}
function confirmCallBackEDLogFn(arg)
{
if(arg == "Yes")
{
window.location.href = "../scan/viewchart.aspx"; // Set the url to redirect
}
}
</script>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="chkBulk">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="chkBulk" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadGridEDLogFiles">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGridEDLogFiles" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="chkEDLog">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="chkEDLog" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
</code>