I have a radWindow with the following javascript code:
| <script type="text/javascript"> |
| //This code is used to provide a reference to the RadWindow "wrapper" |
| function GetRadWindow() { |
| var oWindow = null; |
| if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog |
| else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well) |
| return oWindow; |
| } |
| function CloseOnReload(prmMsg) { |
| if (prmMsg.length > 0) { |
| alert(prmMsg); |
| } |
| GetRadWindow().Close(); |
| } |
| </script> |
I have the following in my code-behind:
| Dim closescript As String = "<script>CloseOnReload('" & strMsg & "')</" + "script>" |
| ScriptManager.RegisterStartupScript(Me.Page, Me.GetType(), "CloseOnReload", closescript, False) |
When I run this, I correctly get an alert message, followed by the page closing after the user hits the [OK] button.
I would like to show a radAlert instead of the normal javascript alert. I have a radWindowManager on the page and I changed
alert(prmMsg);
to
radalert(prmMsg, null, null, 'My Title');
This is not working though. How can I change my alert to be a radalert instead?
Thanks.
Steve
