Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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>

Please let me know a resolution..

share|improve this question
3  
whathaveyoutried.com? –  Steve B Jul 10 '12 at 13:28
    
@PeteEngineer welcome to our forum. If you expect us to help you with your issue, please elaborate on what you have tried so far instead of expecting us to do your job for you :-) –  Anders Rask Jul 10 '12 at 13:56
    
You should be able to just drop a script manager on the page in designer view. It just sits there. –  Mike Jul 10 '12 at 14:24
    
I have added scriptmanager in masterpage its not working, i also added in the designer page of webpart its not working , so may be i am positioning in a wrong location , could you tell me where exactly i need to place the code ? –  PeteEngineer Jul 11 '12 at 4:59
add comment

2 Answers

up vote 0 down vote accepted

You need to add the tag at the top of the page.

http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.aspx

share|improve this answer
    
From the link i have added the scripmanager in code behind it is working fine. –  PeteEngineer Jul 11 '12 at 10:16
add comment

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> 
share|improve this answer
    
Not working !!! –  PeteEngineer Jul 11 '12 at 10:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.