Hi,
I am rolling out a consistent set of alert dialogs and controls across our systems and part of this task is to get rid of old error/informational messages and replace them with something better.
i like the radwindow alert and confirm dialogs and want to embed them in our existing codebase.
What we currently have is a method in our basepage called showAlert..
This just makes a basic javascript alert popup once the postback has finished and alerts the user.
I want to replace this with the radWindowManager and use the built in alerts.
How can i initiate the alert and confirm dialogs from the server side? there seems to be no examples available.
I tried adding a radwindowManager to my page, then i modified the ShowAlert() method like so....
but i get the following error...
var _6=_5._getStandardPopup("alert",_1);
What am i doing wrong here?
I am rolling out a consistent set of alert dialogs and controls across our systems and part of this task is to get rid of old error/informational messages and replace them with something better.
i like the radwindow alert and confirm dialogs and want to embed them in our existing codebase.
What we currently have is a method in our basepage called showAlert..
protected void ShowAlert(string msg) |
{ |
var myScript = string.format("alert('{0}');",msg); |
Page.ClientScript.RegisterStartupScript(this.GetType(), "SCR", myScript, true); |
} |
This just makes a basic javascript alert popup once the postback has finished and alerts the user.
I want to replace this with the radWindowManager and use the built in alerts.
How can i initiate the alert and confirm dialogs from the server side? there seems to be no examples available.
I tried adding a radwindowManager to my page, then i modified the ShowAlert() method like so....
protected void ShowAlert(string msg) |
{ |
string myScript = string.Format("radalert('A string.', 200, 100,'{0}');", msg); |
Page.ClientScript.RegisterStartupScript(this.GetType(), "SCR", myScript, true); |
} |
but i get the following error...
_5 is undefined
default.aspx()()default.aspx (line 135)
What am i doing wrong here?