asp.net的ScriptManager和UpdatePanel控件失踪
我创建了一个新的ASP.NET Web应用程序,但对于ScriptManager的UpdatePanel的和对照失踪。谷歌搜索,并在web.config搞乱公平位后,我无法让他们正确安装。
I have created a new ASP.NET Web Application, but the controls for ScriptManager and UpdatePanel are missing. After a fair bit of googling, and messing with the web.config, I am unable to get them installed properly.
我在他们所安装并运行另一个项目,我已经穿过复制的所有从web.config中的code,但仍然没有运气。
I have another project in which they are installed and working, and I have copied all of the code from web.config across, but still no luck.
也许Visual Studio中有很多自动安装它的工具?或者是一厢情愿的想法?!
Maybe Visual Studio has a tool for installing it automatically?! Or is that wishful thinking?!
我通过添加以下到我的web.config文件中解决了这个问题...
I solved this issue by adding the following to my web.config file ...
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
</pages>
</system.web>