This is a migrated thread and some comments may be shown as answers.

Calling Radalert from codebehind

4 Answers 233 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kishor Dalwadi
Top achievements
Rank 2
Kishor Dalwadi asked on 02 Aug 2010, 10:39 AM
Hello sir

I want call radalert from codebehind.

----------  Code  ---------- 

 

 

public static void ShowMessage(Control control, string message)

 

{

 

 

ScriptManager.RegisterStartupScript(control, typeof(string), "Alert", "<script> window.alert = function (string) { radalert('" + message + "');</script>", false);

 

}

But it is not working.

please give me proper solution.

Thanks

Kishor Dalwadi

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Aug 2010, 10:45 AM
Hello Kishor,


I believe the KB Article itself is enough for you in calling RadAlert from code behind.
Calling radalert from codebehind


-Shinu.
0
Kishor Dalwadi
Top achievements
Rank 2
answered on 02 Aug 2010, 12:39 PM
Thanks for reply Shinu.

I tried that.

But From the code behind alert will not call.

My function Write in a App_Code Class and it's not working.

Please give me porper solution for that.

Kishor Dalwadi
0
Georgi Tunev
Telerik team
answered on 02 Aug 2010, 02:34 PM
Hi Kishor,

Please check the following blog post for more information on the subject:

http://blogs.telerik.com/supportdept/posts/09-05-05/executing_javascript_function_from_server-side_code.aspx

If you still experience problems after that, open a support ticket and send us a sample page that reproduces the problems so we can check it.

All the best,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kishor Dalwadi
Top achievements
Rank 2
answered on 03 Aug 2010, 10:30 AM
Thank You Sir.

My problem is solved.

Tags
Window
Asked by
Kishor Dalwadi
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Kishor Dalwadi
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or