ASP.NET Ajax Control toolkit – Common Problems
June 13, 2008
Problem 1 : This page is missing a HtmlHead control which is required for the CSS stylesheet link that is being added. Please add <head runat=”server” />
Solution : make your HEAD tag to <HEAD runat=”server”>
problem 2 : The Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>).
Solution: Looks like you are using <% tags in your HEAD section code like Javascript code etc…. To fix it wrap your head section with <div runat=”server”> and </div>
January 19, 2009 at 3:30 pm
Good solution
However if you dont want “Div” tag apearing in the source, then you could use the following
put the value from code behind
litHeader.Text = Common.getValues(“yourArg”)
January 19, 2009 at 3:33 pm
Good solution
However if you dont want “Div” tag apearing in the source, then you could use the following
“asp:Literal id=”Litheader” runat=”server”
put the value from code behind
litHeader.Text = Common.getValues(”yourArg”)
PS: somehow my markup is getting removed
February 21, 2011 at 1:42 am
Solution : make your HEAD tag to
Put this statement in master page that this page drived from.
thanks
February 7, 2012 at 10:56 pm
Thank You ajax problem is now solve
Thank ‘s
August 30, 2012 at 12:48 pm
Solution 2 worked for me :
- In BasePage.aspx : removed runat=”server” from my head tag
- In my Page.Master.aspx : I added before my and the closing tag after the tag
No change done to all my Pages.aspx that inherits from BasePage.aspx
August 30, 2012 at 12:51 pm
Sorry the tags got removed by wordpress, I meant :
- In my Page.Master.aspx : I added a DIV as a parent of my HEAD, both with runat=”server