problem with radalert

2 posts, 0 answers
  1. sadiqabbas
    sadiqabbas avatar
    21 posts
    Member since:
    Mar 2009

    Posted 07 Jan 2010 Link to this post

    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..
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 07 Jan 2010 Link to this post

    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.
Back to Top