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