The control with ID 'XXXXX' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it
-
09-12-2019 - |
Question
I am getting the layout issue for calendar webpart in my page .
with the error message :
The control with ID 'XXXXX' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
Its looks like there is no scriptmanager.I dont know where to put it
I have below my designer code ..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ Page Language="C#" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register tagprefix="WebPartPages" namespace="Microsoft.SharePoint.WebPartPages" assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register tagprefix="WebParts" namespace="QS.SharePoint.WebControls.WebParts" assembly="QS.SharePoint.EventCalendarList, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5242205e2f823a28" %>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta name="WebPartPageExpansion" content="full" />
<meta name="ProgId" content="SharePoint.WebPartPage.Document" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DB</title>
</head>
<body>
<form id="form1" runat="server">
<WebPartPages:SPWebPartManager runat="server" id="SPWebPartManager">
</WebPartPages:SPWebPartManager>
<WebPartPages:WebPartZone id="g_7A9120292BC3473792FEDF170F3916AE" runat="server" title="Zone 1">
<ZoneTemplate>
<WebParts:EventCalendarListWebPart runat="server" FirstDayOfWeek="Default"
ListName="Calendar" SiteUrl=""
NumDaysInEventListing="3" ID="g_095dc4fc_c2ac_4e33_8ff5_8142e32bc7e5"
ShowCalendar="True" Description="Displays events in a calendar and a list."
ShowListing="True" Title="Event Calendar Listing" __MarkupType="vsattributemarkup"
__WebPartId="{095DC4FC-C2AC-4E33-8FF5-8142E32BC7E5}"
WebPart="true" __designer:IsClosed="false" partorder="2">
</WebParts:EventCalendarListWebPart>
</ZoneTemplate></WebPartPages:WebPartZone>
</form>
</body>
</html>
Solution
You need to add the tag at the top of the page.
http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.aspx
OTHER TIPS
Change this
<form id="form1" runat="server">
<WebPartPages:SPWebPartManager runat="server" id="SPWebPartManager">
</WebPartPages:SPWebPartManager>
to this
<form id="form1" runat="server">
<asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" />
<WebPartPages:SPWebPartManager runat="server" id="SPWebPartManager">
</WebPartPages:SPWebPartManager>
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange