I created a simple MasterPage and a content page which includes a WebSplitter control. I am getting an error stating "Infragistics control requires a ScriptManager object on the page". I added a ScriptManager control on the Master page and I still get the error. I tried moving the ScriptManager to the content page and the results are the same. Here is my MasterPage:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="PBAMasterPage.master.cs" Inherits="PBA.PBAMasterPage" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" ID="scriptmanager1">
</asp:ScriptManager>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</form>
</html>
This is the content page using a WebSplitter:
<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v8.1, Version=8.1.20081.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>
<%@ Register Assembly="Infragistics2.Web.v8.1, Version=8.1.20081.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
Namespace="Infragistics.Web.UI.LayoutControls" TagPrefix="ig" %>
<ig:WebSplitter runat="server" ID="TraditionalLeftNav" Orientation="Vertical" Height="600px">
<Panes>
<ig:SplitterPane ToolTip="Navigation Pane" Size="30%">
<Template>
<div id="header">
<img alt="header image" src="../../../images/image1.bmp" width="199" height="54" />
</div>
<ul>
<li><a href="http://www.yahoo.com" target="_view">Yahoo</a></li>
<li><a href="http://www.google.com" target="_view">Google</a></li>
</ul>
</Template>
</ig:SplitterPane>
<ig:SplitterPane ToolTip="Content Pane" Size="70%">
<iframe name="_view" id="_view" style="width: 100%; height: 100%; border: none 0px; margin: 0px; padding: 0px;" frameborder="0" src="http://www.yahoo.com">
</iframe>
</Panes>
</asp:Content>
You should use a ScriptManager on the Master page, and a ScriptManagerProxy on the content pages. Just add a ScriptManagerProxy to your client page, and you should be set.
-Tony
Thanks for the quick reply. I added the ScriptManagerProxy and everything is working fine.
If I have more than one ContentPlaceHolders.. Should I place a ScriptManagerProxy in each <asp:Content ....> ?
I have a masterpage with 2 contentplaceholders... In the contentpage I have a WebExplorerBar in the first PlaceHolder and a WebDataGrid on the second PlaceHolder... both are AjaxEnabled..
Problem: In firefox and IE (compatibility mode) i get Errors when I for example Sort the grid.. or expand the ExplorerBar (subitem load):
IE:
Invalid argument
URI: http://10.10.136.96/fundustest/ScriptResource.axd?d=qg7rfeo9PhicP8nbgq33o3UDJb0fJa4pedWjzd2hl4p3dLceR9M2cuDe4elcpPPpWkmURG5jjh-A6YYSbMXjeyMrx6xTrX6jCUW4tlRVB2WxonYvNSsPgVZZO7Tlfjyrq0u_poCWKtA2Qf8N2FTkts8qelp8YJ-Bj1rj_ZERT0SbpfHHhcVrdnbxV3rJ3eSWVonFnp-5cR_-pvUaYfdN2w2&t=ffffffffab70e3ec
Firefox (firebug tells me):
uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://localhost/fundustest/ScriptResource.axd?d=qg7rfeo9PhicP8nbgq33o3UDJb0fJa4pedWjzd2hl4p3dLceR9M2cuDe4elcpPPpWkmURG5jjh-A6YYSbMXjeyMrx6xTrX6jCUW4tlRVB2WxonYvNSsPgVZZO7Tlfjyrq0u_poCWKtA2Qf8N2FTkts8qelp8YJ-Bj1rj_ZERT0SbpfHHhcVrdnbxV3rJ3eSWVonFnp-5cR_-pvUaYfdN2w2&t=ffffffffab70e3ec :: anonymous :: line 114" data: no]
I have a WebScriptManager in the masterpage. I tried with and without ScriptManagerProxy in the contentpage placeholders... The same content without masterpage works.
I have attached a .txt with the masterpage and contentpage code.
I found a "solution"..
1.
If I go to my page using the IIS Default Page Setting -> http://server/site/I get ajax errors.
2.
If I got directly to my page -> http://server/site/default.aspxI get NO ajax errors.
I set the IIS default page to index.html (content: redirect to default.aspx)
/Bernd
I had no error in IE (compatibility view on) looking at my page in studio dev server (http://localhost:56977/default.aspx).
The error occoures if i try to look at the same web app deployed to my local IIS (http://localhost/test/default.aspx)
Maybe the problem has something todo with my web.config...
My web.config:
(I copied the C:\inetpub\wwwroot\aspnet_client\Infragistics\20103CLR4\scripts into ~/ig/scripts and the C:\Program Files (x86)\Infragistics\NetAdvantage 2010.3\ASP.NET\Images into ~/ig/images + configured the paths in web.config -- AS described in Hosted Environment Install Guide)
See attachment.