Hi,
I have the following set-up:
A master page with a script manager on it.
A contentpage derived from the master page, which has a userControl on it.
The userControl has a WebDialog contol on it.
When I try to view the page, I get the message "This Infragistics control requires a ScriptManager object on the page in order to operate correctly".
I tired to:
Any help you can offer would be very much appreciated.
Regards
Alistair
1 script manager in the master page, and 1 script proxy in the content page and all sorted (as it is shown in the aspx published above, thanks alexander for your clear and straight forward code). Just make sure to put the script manager and proxy before the controls.
good luck!.
Okay, I found the problem. It looks like the Project Upgrade Wizard did not work completely (maybe a Source Control issue). I manually replaced some Infragistics2 references with Infragistics35 references and it works now.
It was hard to find this since most of the older Infragistics controls didn't seem to care that they were 2.0 assemblies loded into a 3.5 environment, only the newer controls were picky about it.
Thank you for your help.
Try any of the new controls - WebImageViewer, WebSplitter, WebDataGrid...
It may be also possible that the Visual Studio is pulling caching tricks on you.
Unfortunately, it seems to work in a simple example, but not in my existing application which is quite complex.
I did not have this problem before switching from .NET 2.0 to .NET 3.5. The exact same code worked in 2.0, but now I get this error in 3.5. All other functionality, (Ajax, UpdatePanels, WARP panels, other Infragistics controls, etc.) are working fine. The only problem I see is with the WebDialogWindow.
When I remove the WebDialogWindow, the error goes away. I do not get the error from any other Infragistics controls on the UserControl (UltraWebGrid, UltraWebGridExcelExporter, WebDateChooser).
Is there another Infragistics control you can suggest I can try to put on the UserControl to see if it is just with the WebDialogWindow control that has the problem?
Tried it out in a sample seems to work...
Here is my master page:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
Master page
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</div>
</form>
</body>
</html>
Here is the content form:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" MasterPageFile="~/MasterPage.master" %>
<%@ Register Assembly="Infragistics35.Web.v9.1, Version=9.1.20091.2013, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
Namespace="Infragistics.Web.UI.LayoutControls" TagPrefix="ig" %>
<%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %>
<asp:Content ID="q" ContentPlaceHolderID=ContentPlaceHolder1 runat=server>
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
</asp:ScriptManagerProxy>
<ig:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="300px" Width="400px">
</ig:WebDialogWindow>
<uc1:WebUserControl ID="WebUserControl1" runat="server" />
</asp:Content>
Here is the user control:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %>
Everything seems to be ok.
Could you share a simple sample? Thanks!