I am attempting to display a radAlert once a record has been updated - very straight forward. I have stepped through the code and know it is getting there, for some reason the window simply does not show up. I have the window manager and AjaxScriptManager on the page:
I am trying to call the alert simply by doing this:
So.... What am I doing wrong here?
(the page I am calling this from is a RadWindow in itself, called from a Grid Edit - could that be the reason? I don't see why but who knows...
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
<telerik:RadAjaxManager ID="AppRadAjaxManager" runat="server"> |
</telerik:RadAjaxManager> |
<telerik:RadWindowManager ID="AppRadWindowManager" runat="server" Width="400px"> |
</telerik:RadWindowManager> |
Dim Updated As Integer = Applications_DataAccess.UpdateApplicantInfo(record, first_name, last_name) |
If Updated > 0 Then |
'does absolutely nothing |
DisplayMessage("Application Record Has Been Updated Successfully.", "Update SUCCESS") |
'works fine |
'MsgBox("Application Record Has Been Updated Successfully.", MsgBoxStyle.Exclamation, "Update SUCCESS") |
End If |
Private Sub DisplayMessage(ByVal text As String, ByVal title As String) |
AppRadAjaxManager.ResponseScripts.Add("Sys.Application.add_load(function(){radalert('" & text & "', 330, 210, '" & title & "');})") |
End Sub |
So.... What am I doing wrong here?
(the page I am calling this from is a RadWindow in itself, called from a Grid Edit - could that be the reason? I don't see why but who knows...