NotesFor.Gallery within a panel raised by ajaxToolkit:ModalPopupExtender

Sep 15, 2010 at 2:09 PM

Hi,

I'm getting this exception when I add the control within a panel raised by ajaxToolkit:ModalPopupExtender:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

 [HttpException (0x80004005): La colección de controles no puede modificarse porque el control contiene bloques de código (por ej. <% ... %>).]
   System.Web.UI.ControlCollection.Add(Control child) +8678391
   NotesFor.Gallery.RegisterCss(String css) +189
   NotesFor.Gallery.OnInit(EventArgs e) +38
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378

When I remove the control popup panel is raised.

Please may you help me?

Cheers