The control collection cannot be modified during DataBind, Init, Load, PreRende

Posted by: kbeyene on 21 March 2018, 2:28 am EST

    • Post Options:
    • Link

    Posted 21 March 2018, 2:28 am EST

    Adding gridview into my aspx page gives me this error. The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.

    Please advise

  • Posted 21 March 2018, 2:05 pm EST

    Hi,

    I am not sure about the C1 Control you are referring to here . However this is a generic Error.

    You can read more about the resolution from here

    https://forums.asp.net/t/2006689.aspx?The+control+collection+cannot+be+modified+during+DataBind+Init+Load+PreRender+or+Unload+phases

  • Posted 21 March 2018, 11:12 pm EST

    Hi,

    I saw that forum but it’s not related to my issue. My problem is I couldn’t be able to use wijmo:C1GridView. Because It gives me the above error. And work fine with asp:GridView.

    Also when I inspect the element I see this error Uncaught ReferenceError: wijmoASPNetParseOptions is not defined. Even after I used

    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.17/jquery-ui.min.js" type="text/javascript"></script>
    <!--Theme-->
    <link href="http://cdn.wijmo.com/themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" title="rocket-jqueryui" />
    <!--Wijmo Widgets CSS-->
    <link href="http://cdn.wijmo.com/jquery.wijmo-complete.all.2.0.0.min.css" rel="stylesheet" type="text/css" />
    <!--Wijmo Widgets JavaScript-->
    <script src="http://cdn.wijmo.com/jquery.wijmo-open.all.2.0.0.min.js" type="text/javascript"></script>
    <script src="http://cdn.wijmo.com/jquery.wijmo-complete.all.2.0.0.min.js" type="text/javascript"></script>
    
  • Posted 26 March 2018, 10:56 pm EST

    Hi,

    We are sorry for the delayed response.

    Could you please try with removing above script from your project?

    Since, these are added to the project as C1Control is added to the project.

    Please let us know and share a demo sample depicting your issue for further investigation.

    ~Manish

  • Posted 16 April 2018, 5:08 am EST

    Hi Manish,

    Yes I did. But still the same error. The only way the page work is if I put runat=“server” on head tag. But I don’t want to do that. Since we put runat=“server” on title tag because we we assign title on server side.

    thanks,

    Kidist

  • Posted 16 April 2018, 4:12 pm EST

    Hi Kidist,

    Could you please share a demo sample which depicts your issue for investigation?

    ~Manish

Need extra support?

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

Learn More

Forum Channels