Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Created Issue: CollapsiblePanelExtender issue with MasterPage's ScriptManager in VS2012 [27344]

$
0
0
The new VS2012's default MasterPage design comes with a ScriptManager. I am unable to add a CollapsiblePanelExtender on to a web form because the CPE requires ToolkitScriptManager.
So then I thought, replace the ScriptManager in the MasterPage with ScriptManager, then this error came up:
_"Could not load file or assembly 'System.Web' or one of its dependencies. The system cannot find the file specified."_

When I try to use only one ScriptManager, excluding TSM(toolkit), then this error shows up: _"0x800a139e - Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll."_

Then I tried with ScriptManagerProxy, and I get the same error as above. I'm find it a really hard time to try to add in CPE to my webpage. Does anyone here know what is going on? Is it a VS2012 compatability issue?

Here is the code of the ScriptManager on MasterPage:
```
<asp:ScriptManager runat="server">
<Scripts>
<%--Framework Scripts--%>
<asp:ScriptReference Name="MsAjaxBundle" />
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="jquery.ui.combined" />
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" />
<%--Site Scripts--%>

</Scripts>
</asp:ScriptManager>
```

Here is my code for the PanelExtender
```
<asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server"></asp:ToolkitScriptManager>
<h3>We suggest the following:</h3>
<ol class="round">
<li class="one">
<asp:Panel ID="pnlRec" runat="server"><h5>Getting Started with Recreation</h5><br />
<asp:Label ID="lblMsg" runat="server" Text="Label"></asp:Label></asp:Panel>
<asp:Panel ID="cpnlRec" runat="server"><table><tr>
<td>Stuff</td><td>Stuff</td><td>Stuff</td>
</tr></table></asp:Panel>
<asp:CollapsiblePanelExtender ID="cpeRec" runat="server" CollapseControlID="cpnlRec" Collapsed="True"
ExpandControlID="cpnlRec" CollapsedText="Show" ExpandedText="Hide" TextLabelID="lblMsg" TargetControlID="cpnlRec">

</asp:CollapsiblePanelExtender>
```

Viewing all articles
Browse latest Browse all 4356

Trending Articles