Hi guys.
I wanna use radalert to show some result messages and redirect to another page. For some reason, I have to use it in codebehind.
I've read every article about this question, such as:
http://www.telerik.com/support/kb/article/b454K-gtd-b454T-cec-b454c-cec.aspx
I have successfully build my radalert windows from codebehind, it works well, but redirect code was not work.
I have found that when I using "alert" like this:
It works well .
But when I modified it to use radalert like bellow, it didn't work any more.
Can anyone tell me how to solve this problem?
Any advice would be appreciated, too.
I wanna use radalert to show some result messages and redirect to another page. For some reason, I have to use it in codebehind.
I've read every article about this question, such as:
http://www.telerik.com/support/kb/article/b454K-gtd-b454T-cec-b454c-cec.aspx
I have successfully build my radalert windows from codebehind, it works well, but redirect code was not work.
I have found that when I using "alert" like this:
string script = "alert('New Password is Created');\n"; |
script += "location.href='loginpage.aspx';\n"; |
Page.ClientScript.RegisterStartupScript(GetType(), "msgbox", script, true); |
But when I modified it to use radalert like bellow, it didn't work any more.
string radalertscript = "<script language='javascript'> Sys.Application.add_load(function(){var oWnd =radalert('Welcome to RadWindow <b>Prometheus</b>!', 330, 210);oWnd.OnClientClose = function(){window.location.href='loginpage.aspx';}})</script>"; |
Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript); |
Can anyone tell me how to solve this problem?
Any advice would be appreciated, too.