ScripttManager in SubPages

Last post 11-07-2008 4:38 AM by ferakpeter. 4 replies.

Sort Posts:

  • ScripttManager in SubPages

    11-04-2008, 11:36 AM
    • Member
      point Member
    • ferakpeter
    • Member since 11-04-2008, 11:28 AM
    • Posts 2
    Hey everyone! In my application I created a MasterPage from which all pages derive. But. When I attempt to add the Scriptmanager or any other AJAX Tool it is not recognized in the Subpages (in the Masterpage it works fine). Has anyone had the same problem? The exact error message is: The Script-Manager Element is not a known Element. I added the ScriptManager inside the content tag: (notice there is no ID tag which is usually added automatically) Thanks for any help, I am new with ASP and I'm sure this is trivial, just can't seem to find the answer. Thank you again! Peter
  • Re: ScripttManager in SubPages

    11-04-2008, 3:03 PM
    • All-Star
      122,875 point All-Star
    • XIII
    • Member since 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 13,604
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Hi,

    and welcome to the ASP.NET forums.

    Instead of a scriptmanager put on a scriptmanagerproxy control instead.

    Grz, Kris.

  • Re: ScripttManager in SubPages

    11-04-2008, 6:32 PM

     i have this problem too

    i tried to proxy but it still the same

    any one help

  • Re: ScripttManager in SubPages

    11-05-2008, 3:10 AM
    • All-Star
      122,875 point All-Star
    • XIII
    • Member since 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 13,604
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Hi,

    perhaps I'm getting the question a bit wrong. Is it possible to recreate the smallest portion of code of this particular situation (1 master page, subpage, ...) and put the code here so the members might take a look at it to reproduce the error and get, hopefully, things working?

    Grz, Kris.

  • Re: ScripttManager in SubPages

    11-07-2008, 4:38 AM
    Answer
    • Member
      point Member
    • ferakpeter
    • Member since 11-04-2008, 11:28 AM
    • Posts 2
    Hey again! Thanks for all the help! My initial problem was slightly different than you interpreted. For some reason my code-window wasn't picking up the ajax tags in my subpages (even though all the configurations were right). I had to reset my toolbox and add the controls again, then it was picking up fine. And the ScriptManager problem also took care of itself as soon as I did that. I now have an instance of the ScriptManager in the MasterPage and the Subpages pick this ScriptManager up (can't have two ScriptManager objects in one page, hence impossible to have a separate one in the Subpage). The only problem this creates is that the AJAX tags (such as ) don't get automatically picked up in the Subpages, this means I have to handcode it out. It will work fine when the page loads because the ScriptManager is in the MasterPage. I now know the syntax for the AJAX tags, if you do not I suggest copying over the passages from the MasterPage, you will get the usual ASP.NET assistance in this class. One of the obvious mistakes that I did was to think of the MasterPage as a separate page. I think it has been mentioned in this Forum time again: think of the MasterPage like a control. This really made a lot more sense to me. Thank you again! I hope this solution can help other people facing similar issues. Greetings, Peter.
Page 1 of 1 (5 items)