Monday, March 26, 2012

Designer rendering error for UpdateProgress control, cant find ScriptManager

My page includes a scriptmanager right at the top, as always. I have a detailsview that includes a couple of TemplateFields that contain in the ItemTemplate, updatePanels. Each updatePanel contains a label, button, and UpdateProgress control. In the design mode the designer gives the error for the detailsView, "There was an error rendering a control. The Control with the ID 'UpdateProgress1' requires a ScriptManager on the page. The Script must appear before any controls that need it."

Here is an example of the Template field:

<asp:TemplateField HeaderText="BadLogistics"> <ItemTemplate> <asp:UpdatePanel ID="UpdatePanelBL" runat="server"> <ContentTemplate> <asp:Button ID="BLButton" runat="server" OnClick="BLButton_Click" Text="Get number of Files" /> <asp:UpdateProgress ID="UpdateProgressBL" runat="server" AssociatedUpdatePanelID="UpdatePanelBL" DisplayAfter="1"> <ProgressTemplate> <asp:Image ID="ImageBL" runat="server" ImageUrl="~/images/ajax-loader.gif" /> </ProgressTemplate> </asp:UpdateProgress> <asp:Label ID="BLLabel" runat="server"></asp:Label> </ContentTemplate> </asp:UpdatePanel> </ItemTemplate> <HeaderTemplate>Bad Logistics Status PDSF Files in the last <asp:Label ID="BadLogisticsMins" runat="server" ForeColor="Red"></asp:Label> Minutes </HeaderTemplate> </asp:TemplateField>

Am I doing anything wrong here? I'm pretty new to Ajax. The website runs fine, but the designer just shows this error instead of the fields. How can I fix this? Is this an unsupported use?

Just to be clear, the script manager is the first control inside the form, and no master pages are being used. I don't understand why it can't find the ScriptManager that is clearly on the page right above the detailsview. Any Ideas?

Thanks for the help in advance!

Hi BenderM,

You mention the error states that the updateprogress ID is UpdateProgress1, but your sample code shows it to be calledUpdateProgressBL

Please include the CODE containing the UpdateProgress control with the ID UpdateProgress1.

Thanks,

wil


Sorry about that, the error stats UpdateProgressPP instead of UpdateProgress1. Here is the code containing that UpdateProgressPP, it is alost exactly the same as UpdateProgressBL:

<asp:TemplateField> <ItemTemplate> <asp:UpdatePanel ID="UpdatePanelPP" runat="server"> <ContentTemplate> <asp:Button ID="PollpathButton" runat="server" OnClick="PollpathButton_Click" Text="Get number of Files" /> <asp:UpdateProgress ID="UpdateProgressPP" runat="server" AssociatedUpdatePanelID="UpdatePanelPP" DisplayAfter="1"> <ProgressTemplate> <asp:Image ID="ImagePP" runat="server" ImageUrl="~/images/ajax-loader.gif" /> </ProgressTemplate> </asp:UpdateProgress> <asp:Label ID="PollpathLabel" runat="server"></asp:Label>  </ContentTemplate> </asp:UpdatePanel> </ItemTemplate> <HeaderTemplate> <div style="width:200px"> # of files in Pollpath, created in the last <asp:Label ID="PollpathMins" runat="server" ForeColor="Red"></asp:Label> Minutes </div> </HeaderTemplate> </asp:TemplateField>
I hope that helps.

hey benderm,

I cant see where the problem is. I dont want you to do this until you are certain all other options have been tried, but I helped someone a couple days ago that had a problem where something using Ajax just didn't make any sense and he fixed it by downloading the latest build of Ajax 1.0 (I think he said the latest was only a couple months old).

That or reinstall VS servicepack 1!Embarrassed

Sorry I nothing else for you.


I see this problem when I use master pages....Huh?

I am using the newest build of ajax.

i reinstalled Vs2005 SP1 and still am getting the designer message


Did you ever solve this problem? I am having the same issue.


Anyone? Anyone? this problem still persists with VS2008 RTM (.NET2.0)

No comments:

Post a Comment