弹出控件扩展器 - 母版问题! [英] popup control extender - problem with master page!
问题描述
我做了2页,一页有母版,一页没有母版页。在单击按钮后在gridview中添加弹出控件扩展器时,没有母版页的工作正常。另一方面,带有母版页的页面带来错误:
由于控件
包含代码,因此无法修改Controls集合块(即<%...%>)。
所以我在某处读到了我需要在web.config中添加一些内容但是我确定我做的是否正确!:
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.
推荐答案
我认为你必须在母版页中添加脚本管理器控件
i think u have to add script manager control in master page
这篇关于弹出控件扩展器 - 母版问题!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!