Calling Radalert from codebehind

5 posts, 0 answers
  1. Kishor Dalwadi
    Kishor Dalwadi avatar
    40 posts
    Member since:
    Nov 2009

    Posted 02 Aug 2010 Link to this post

    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

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Aug 2010 Link to this post

    Hello Kishor,


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


    -Shinu.
  3. Kishor Dalwadi
    Kishor Dalwadi avatar
    40 posts
    Member since:
    Nov 2009

    Posted 02 Aug 2010 Link to this post

    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
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Aug 2010 Link to this post

    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
  5. Kishor Dalwadi
    Kishor Dalwadi avatar
    40 posts
    Member since:
    Nov 2009

    Posted 03 Aug 2010 Link to this post

    Thank You Sir.

    My problem is solved.

Back to Top