Adding a popup Calendar?

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

  • Posted 10 September 2017, 11:29 am EST

    <P mce_keep="true">Hi,</P>
    <P mce_keep="true"> 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:</P>
    The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
    <P mce_keep="true">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. <BR><BR>Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).<BR><BR>Source Error: <BR><BR>



    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. <BR>Stack Trace: <BR><BR>



    [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
    </PRE></P>
  • Replied 10 September 2017, 11:29 am EST

    <P mce_keep="true">Hi,</P>
    <P mce_keep="true">   I tried the sample page with popup mode, can't see any error.</P>
    <P mce_keep="true">  Would you please send me the aspx page you are using?</P>
    <P mce_keep="true">   Thanks.</P>
    <P mce_keep="true"> </P>
    <P mce_keep="true">-jason </P>
    <P mce_keep="true"> </P>
Need extra support?

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

Learn More

Forum Channels