Hi,
I am trying to display a confirmation box and based on the result I need to do further processing.
Currently, I am using a windows confirm and everything runs fine. I am not able to achieve the same functionality with a radconfirm. Can you assist?
On click of a button I am running this code:
In the js I do this:
I get js errors when i try the same with radconfirm.
I need to change the style and the confirm button text so I want to use radconfirm. I read somewhere that if(confirm) kind of scenario is not possible with the blocking execution thread functionality of radconfirm.
I am using VB.NET
Please advice.
I am trying to display a confirmation box and based on the result I need to do further processing.
Currently, I am using a windows confirm and everything runs fine. I am not able to achieve the same functionality with a radconfirm. Can you assist?
On click of a button I am running this code:
Private Sub ConfirmUpdate(ByVal confirmText As String) Dim sb As StringBuilder = New StringBuilder() sb.Append("<script type='text/javascript'>") sb.Append("ConfirmUpdate('" + confirmText + "');") sb.Append("</script>") RadAjaxManager1.ResponseScripts.Add(sb.ToString()) End SubIn the js I do this:
function ConfirmUpdate(confirmText, action) { if (confirm(confirmText)) { document.getElementById('<%= btnUpdate.ClientID %>').click(); } }I get js errors when i try the same with radconfirm.
I need to change the style and the confirm button text so I want to use radconfirm. I read somewhere that if(confirm) kind of scenario is not possible with the blocking execution thread functionality of radconfirm.
I am using VB.NET
Please advice.