Try Now
More in this section

Forums / Developing with Sitefinity / ScriptManager.RegisterStartupScript problem

ScriptManager.RegisterStartupScript problem

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
    17 Oct 2016
    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