Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I made 2 pages, one with masterpage and one without master page. the one without masterpage is working fine when adding the popup control extender inside the gridview after clicking a button. on the other hand, the page with the masterpage it brings an error:

The Controls collection cannot be modified because the control
contains code blocks (i.e. <% ... %>).
so I read somewhere that i need to add some stuff to the web.config but i am sure if what I did is correct!:

<compilation debug="true" targetFramework="4.0">

   <assemblies>
     <add assembly="AjaxControlToolkit"/>
   </assemblies>

</compilation>

<pages>

    <controls>

      <add assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagPrefix="cc1" />    
                
    </controls>
            
</pages>

I am doing something wrong or am i missing something?

Thanks.
Posted
Updated 24-Jan-16 7:36am
v3
Comments
[no name] 23-Jan-16 12:52pm    
Provide code in the file where cc1 is used(either master or child page).

1 solution

i think u have to add script manager control in master page
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900