我升级了DevExpress组件,但在我的应用程序中,我必须更改每个页面中的每个<%@ Register assembly="Dev....... version=....
行。
有没有办法在不为每个页面添加相同行的情况下执行此操作? 我不能在web.config页面中这样做吗?
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
答案 0 :(得分:8)
答案 1 :(得分:1)
我想添加web.config的最后状态:
<system.web>
<pages controlRenderingCompatibilityVersion="3.5" theme="OrderDefault" clientIDMode="AutoID">
<controls>
<add namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" tagPrefix="asp" />
<add namespace="DevExpress.Web.ASPxPivotGrid" assembly="DevExpress.Web.ASPxPivotGrid.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" tagPrefix="dx"/>
<add namespace="DevExpress.Xpo" assembly="DevExpress.Xpo.v10.2.Web, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" tagPrefix="dx" />
<add namespace="DevExpress.Data.Linq" assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" tagPrefix="dx" />
<add namespace="DevExpress.Web.ASPxGridView.Export" assembly="DevExpress.Web.ASPxGridView.v10.2.Export, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" tagPrefix="dx" />
<add namespace="DevExpress.Web.ASPxEditors" assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" tagPrefix="dx" />
<add namespace="DevExpress.Web.ASPxGridView" assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" tagPrefix="dx"/>
<add namespace="DevExpress.Web.ASPxPopupControl" assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" tagPrefix="dx" />
<add namespace="DevExpress.Web.ASPxSiteMapControl" assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" tagPrefix="dx"/>
<add namespace="System.Web.UI.WebControls" assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" tagPrefix="asp" />
<add namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" tagPrefix="asp" />
<add namespace="DevExpress.Web.ASPxNewsControl" assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" tagPrefix="dx" />
<add namespace="DevExpress.Web.ASPxPanel" assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" tagPrefix="dx" />
</controls>
</pages>
</system.web>