Does MVCScriptManager from CodePlex work with ViewUserControls?

Posted by RonnBlack on Stack Overflow See other posts from Stack Overflow or by RonnBlack
Published on 2010-05-19T22:35:09Z Indexed on 2010/05/19 22:40 UTC
Read the original article Hit count: 229

Filed under:

I tried the MVCScriptManager from CodePlex and it seems to work well until you try to use it in conjunction with a ViewUserControl.

When it is used in this type of scenario it gives the following error.

A ScriptManager with RenderMode set to Master is not present. Such ScriptManager must precede one with RenderMode set to Slave.

There is a ScriptManager with render mode set to "Master" in the header of the Site.Master page but it appears that the partial views are rendered first.

Is there any way to work around this problem?

© Stack Overflow or respective owner

Related posts about asp.net-mvc