<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX Discussion and Suggestions</title><link>http://forums.asp.net/1007.aspx</link><description>This forum is the place for ASP.NET AJAX 'getting started' questions, general questions that don't fit in one of the other forums about AJAX </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Must have a &lt;head runat="server"&gt; Error</title><link>http://forums.asp.net/thread/2218365.aspx</link><pubDate>Fri, 07 Mar 2008 10:14:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2218365</guid><dc:creator>eryn</dc:creator><author>eryn</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2218365.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2218365</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m spitting out the page via xml, so I can&amp;#39;t add the runat=&amp;quot;server&amp;quot; at design time, is there some way I can add it in the OnPreInit method maybe??&lt;/p&gt;</description></item><item><title>Re: Must have a &lt;head runat="server"&gt; Error</title><link>http://forums.asp.net/thread/1424728.aspx</link><pubDate>Wed, 11 Oct 2006 06:00:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1424728</guid><dc:creator>ullaskumar_v</dc:creator><author>ullaskumar_v</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1424728.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1424728</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;If&amp;nbsp;you are using Master pages.. then have to make sure that &amp;lt;head runat=&amp;quot;server&amp;quot;&amp;gt;&amp;nbsp; is there in the master page.&lt;/p&gt;&lt;p&gt;regards,&lt;/p&gt;&lt;p&gt;ukv&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Must have a &lt;head runat="server"&gt; Error</title><link>http://forums.asp.net/thread/1302972.aspx</link><pubDate>Thu, 01 Jun 2006 22:07:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1302972</guid><dc:creator>Luis Abreu</dc:creator><author>Luis Abreu</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1302972.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1302972</wfw:commentRss><description>&lt;p&gt;hello guys.&lt;/p&gt;
&lt;p&gt;i believe that the head element must be a server element since it's one of the sections that is sent back from the server to the client during a partial postback (ie, it's contents are parsed and send on every partial postback response).&lt;/p&gt;</description></item><item><title>Re: Must have a &lt;head runat="server"&gt; Error</title><link>http://forums.asp.net/thread/1302924.aspx</link><pubDate>Thu, 01 Jun 2006 20:59:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1302924</guid><dc:creator>gbecavin</dc:creator><author>gbecavin</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1302924.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1302924</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I had the same problem. An .aspx page with a placeholder, loading an ascx control in code behind.&lt;/p&gt;
&lt;p&gt;I replace the &amp;lt;head&amp;gt; section in my aspx page with &lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;head&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;id&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="headSection"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="server"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;,&amp;nbsp;&lt;font color=#000000 size=3&gt; and now it works.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;As the ascx control had an updatepanel, i had to do the loadcontrol in the page-init method.&lt;/p&gt;
&lt;p&gt;Hope that will solve your pb.&lt;/p&gt;
&lt;p&gt;Gilles&lt;font color=#0000ff size=2&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Must have a &lt;head runat="server"&gt; Error</title><link>http://forums.asp.net/thread/1215108.aspx</link><pubDate>Thu, 02 Mar 2006 17:15:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1215108</guid><dc:creator>LordHits</dc:creator><author>LordHits</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1215108.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1215108</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;XIII wrote:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;no it isn't. If you're using Themes in ASP.NET 2.0 it's required to have that attribute.&lt;/p&gt;
&lt;p&gt;Grz, Kris.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Ok, but i'm not using themes and I still go that message. I don't know if it matters, but my scriptmanager control resides in a content page as opposed to the master page.&lt;/p&gt;</description></item><item><title>Re: Must have a &lt;head runat="server"&gt; Error</title><link>http://forums.asp.net/thread/1215071.aspx</link><pubDate>Thu, 02 Mar 2006 16:50:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1215071</guid><dc:creator>leoguy</dc:creator><author>leoguy</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1215071.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1215071</wfw:commentRss><description>&lt;p&gt;But i am not using any themes in my website which is fairly simple ASP.NET 2.0 impelementation. Infact i am using Atlas in .ascx control and .ascx control is loaded first then the page, as a result scripmanager is unable to see the &amp;lt;head runat=server&amp;gt; tag and generates this error.&lt;/p&gt;
&lt;p&gt;Any clue?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Must have a &lt;head runat="server"&gt; Error</title><link>http://forums.asp.net/thread/1215053.aspx</link><pubDate>Thu, 02 Mar 2006 16:42:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1215053</guid><dc:creator>XIII</dc:creator><author>XIII</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1215053.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1215053</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;LordHits wrote:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;but is this a requirement on any page using Atlas?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;no it isn't. If you're using Themes in ASP.NET 2.0 it's required to have that attribute.&lt;/p&gt;
&lt;p&gt;Grz, Kris.&lt;/p&gt;</description></item><item><title>Re: Must have a &lt;head runat="server"&gt; Error</title><link>http://forums.asp.net/thread/1215018.aspx</link><pubDate>Thu, 02 Mar 2006 16:31:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1215018</guid><dc:creator>LordHits</dc:creator><author>LordHits</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1215018.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1215018</wfw:commentRss><description>I got this too (which is easily fixed by making the head runat="server") but is this a requirement on any page using Atlas?</description></item><item><title>Re: Must have a &lt;head runat="server"&gt; Error</title><link>http://forums.asp.net/thread/1215017.aspx</link><pubDate>Thu, 02 Mar 2006 16:31:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1215017</guid><dc:creator>Aidy</dc:creator><author>Aidy</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1215017.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1215017</wfw:commentRss><description>As designed, you need that runat attribute.</description></item><item><title>Must have a &lt;head runat="server"&gt; Error</title><link>http://forums.asp.net/thread/1214976.aspx</link><pubDate>Thu, 02 Mar 2006 15:59:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1214976</guid><dc:creator>leoguy</dc:creator><author>leoguy</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1214976.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1214976</wfw:commentRss><description>&lt;p&gt;When i use &lt;font color=#000000&gt;&lt;font size=2&gt;&amp;lt;&lt;/font&gt;&lt;font size=2&gt;atlas&lt;/font&gt;&lt;font size=2&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;&lt;font color=#000000&gt;ScriptManager&amp;gt; tag in .aspx or .ascx pages without &amp;lt;head runat =server&amp;gt; , i get the following error. Is this a bug or as designed?&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#800000 size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; 
&lt;h1&gt;Server Error in '/AtlasWebSite' Application. 
&lt;hr /&gt;
&lt;/h1&gt;
&lt;h2&gt;&lt;i&gt;Must have a &amp;lt;head runat="server"&amp;gt;&lt;/i&gt; &lt;/h2&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.InvalidOperationException: Must have a &amp;lt;head runat="server"&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table bgColor=#ffffcc&gt;

&lt;tr&gt;
&lt;td&gt;&lt;code&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/code&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;&lt;font face=Verdana&gt;Stack Trace:&lt;/font&gt;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table bgColor=#ffffcc&gt;

&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&lt;pre&gt;[InvalidOperationException: Must have a &amp;lt;head runat="server"&amp;gt;]
   Microsoft.Web.UI.ScriptManager.OnPreRender(EventArgs e) +262
   System.Web.UI.Control.PreRenderRecursiveInternal() +77
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
&lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;
&lt;hr /&gt;

&lt;p&gt;&lt;b&gt;&lt;font face=Verdana&gt;Version Information:&lt;/font&gt;&lt;/b&gt;&amp;nbsp;Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 &lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>