Adding a popup Calendar?

Posted by: liz-timewatch on 10 September 2017, 11:29 am EST

  • Posted 10 September 2017, 11:29 am EST

    Hi,


     I'm trying to add a popup calendar to a webpage and am getting an odd error.  I added the calendar markup and javascript per the example in "ComponentOne SamplesC1WebUICSControlExplorerC1Calendarpopupmode.aspx".  I also added a reference to C1.Web.UI.2.dll & C1.Web.UI.Controls2.dll to my project.  Unfortunately, when I try to view my webpage, I get the following message:


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

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

    Source Error:





    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:





    [HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
    System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +8668018
    C1.Web.UI.C1ThemeHelper.RegisterClientScript(String path, String id, Boolean append) +244
    C1.Web.UI.C1ThemeableControl.OnPreRender(EventArgs e) +48
    C1.Web.UI.Controls.C1Calendar.C1Calendar.OnPreRender(EventArgs e) +41
    System.Web.UI.Control.PreRenderRecursiveInternal() +80
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

  • Replied 10 September 2017, 11:29 am EST

    Hi,


       I tried the sample page with popup mode, can't see any error.


      Would you please send me the aspx page you are using?


       Thanks.


     


    -jason 


     

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels