Search code examples
asp.netajaxuser-controlshttpexception

Httpexception The Controls collection cannot be modified because the control contains code blocks


I try to add a user control by ajax but I have The same problem of This One, and the suggested solution is Remove <%= From head of page, but my master page is:

master page

As you see there is not any <%= character in head of page, So where is the problem? why I get the error yet?

any suggestion?


Solution

  • I put target elements in Panel or placeholder, and there is not any more error.