javascript not working from codebehind when use radscriptmanger

5 posts, 0 answers
  1. Mehul Dumasia
    Mehul Dumasia avatar
    3 posts
    Member since:
    Mar 2010

    Posted 26 Mar 2010 Link to this post

    i used this code for close Rad window

      string script1 = "<SCRIPT LANGUAGE='JavaScript'> ";
                    script1 += "OK_Clicked()";
                    script1 += "</SCRIPT>";
                    Page.RegisterClientScriptBlock("ClientScript", script1);

    but its not work
    i also tried with
      string script2 = "<SCRIPT LANGUAGE='JavaScript'> ";
                    script2 += "OK_Clicked()";                
                    script2 += "</SCRIPT>";
                    //RadScriptManager1.EnableScriptCombine = true;
                    //Page.RegisterClientScriptBlock("ClientScript", script2);
                    RegisterStartupScript("Startup", script2);


  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 26 Mar 2010 Link to this post

    Hi Mehul,

    Please use the ScriptManager.RegisterStartupScript instead. Works with RadScriptManager as well.

    Greetings,
    Tsvetomir Tsonev
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jeremy
    Jeremy avatar
    96 posts
    Member since:
    Mar 2010

    Posted 08 Jun 2010 Link to this post

    Hi

    I don't have that option available?
  5. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 10 Jun 2010 Link to this post

    Hello Jeremy,

    This is a static method of the ScriptManager class, you don't need a reference to the ScriptManager instance - simply type ScriptManager.RegisterStartupScript();

    All the best,
    Dimitar Milushev
    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.
  6. Jeremy
    Jeremy avatar
    96 posts
    Member since:
    Mar 2010

    Posted 08 Jul 2010 Link to this post

    That works Thanks!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017