More in this section
Forums / Developing with Sitefinity / ScriptManager.RegisterStartupScript problem

ScriptManager.RegisterStartupScript problem

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Galina
    Galina avatar
    1 posts
    31 Mar 2014
    01 Apr 2014
    Link to this post


    I'm trying to use such code in my MasterPage:

    ScriptManager.RegisterStartupScript(page, page.GetType(), plh.UniqueID, sb.ToString(), true);
    If I'm trying to add controls on this MasterPage I don't see ContentPlaceHolder, in which I should add controls. If I comment this string everything is ok.

    How should I modify this code?

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    06 Sep 2017
    03 Apr 2014
    Link to this post
    Hello Galina,

    Do you have any errors? Could you please give more information about the script that you are trying to execute? 

    You could check also the forum posts here and here and example here. More information about the RadScriptManager is available in that documentation.

    Svetoslav Manchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered