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>

2 Responses to “ASP.NET Ajax Control toolkit – Common Problems”

  1. Ashutosh Singhal Says:

    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”)

  2. Ashutosh Singhal Says:

    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


Leave a Reply