以前在服务器部署IEWebcontrol时,需要装完asp.net站点后,再安装iewebcontrols,比较麻烦。
其实在web.config文件中配置一下就可以了,不需要安装。在<configuration>下添加:
<configSections>
<section name="MicrosoftWebControls" type="System.Configuration.NameValueSectionHandler, System, System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<MicrosoftWebControls>
<add key="CommonFiles" value="/website/webctrl_client/1_0" />
</MicrosoftWebControls>
website就是你自己的站点
webctrl_client复制到你自己的站点下
补充一点,将Microsoft.Web.UI.WebControls.dll文件添加到bin目录下
注意:<add key="CommonFiles" value="/website/webctrl_client/1_0" />可以换为
<add key="CommonFiles" value="webctrl_client/1_0" />