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

problem with radalert

1 Answer 36 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
sadiqabbas
Top achievements
Rank 1
sadiqabbas asked on 07 Jan 2010, 08:31 AM
i am using 2008.3.1314.20 version of telerik rad controls for asp.net ajax
i am having problem with radalert

i dont know where to post so i posted it here

please help me out

code is below

string radalertscript = "<script>radalert('message is posted here', 330, 210,'title of box');</script>"
Response.Write(radalertscript);
error message displays
is in the attachment

please help me out...

pls pls..

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 07 Jan 2010, 09:09 AM
Hello sadiqabbas,

There are some methods and properties which work in non-ajax scenarios but cannot work with AJAX and this is related to general MS AJAX knowledge and it is not directly related to RadControls. The Response.Write method is one of those methods - if you disable ajax and use a plain postback instead you will see that the problem will disappear. You can find those methods in the MSDN listed below, in the section "Properties and Methods not Supported During Asynchronous Postbacks":

http://msdn.microsoft.com/en-us/library/bb386454.aspx

In order to execute teh script from the server in your case by using AJAX, you should use the approaches explained in the following blogpost and KB article:

http://blogs.telerik.com/blogs/posts/09-05-05/executing_javascript_function_from_server-side_code.aspx
http://www.telerik.com/support/kb/aspnet-ajax/window/calling-radalert-from-codebehind.aspx

Let us know if you need further assistance.


Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
sadiqabbas
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or