我在 asp.net 3.5 中有一个 Web 应用程序,其中我一直在使用一些第三方控件,即 Devexpresv9.2
在我使用这些控件的页面上,我通常必须在页面标记上调用注册标签,例如:
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=中性,PublicKeyToken=b88d1754d700e49a”
命名空间 =“DevExpress.Web.ASPxCallback”TagPrefix =“dxcb”%>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2.Export,版本=9.2.9.0,文化=中性,PublicKeyToken=b88d1754d700e49a"
命名空间 =“DevExpress.Web.ASPxGridView.Export”TagPrefix =“dxwgv”%>
现在我已经更新了我的机器上安装的 devexpress 控件的版本,但它已停止工作,因为我的机器上安装的版本是 v10.0 但我的代码正在寻找 v9.2
请告知我如何以这种方式修改我的代码将来如果我安装另一个版本,那么我不必再次修改所有页面和引用。 web.config 中可能有一些可以帮助我的东西或任何通用的东西?
谢谢
I have a web application in asp.net 3.5 where i have been using some third party controls i.e. Devexpresv9.2
and on the pages where i am using these controls i normally has to call the register tag on the page markup like for ex:
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2.Export, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
Now i have updated the version of devexpress controls installed on my machine and it has stopped working because the version installed on my machine is v10.0 but my code is looking for v9.2
Please advise how can i modify my code in such a way that in future if i install another version then i don't have to modify all the pages and references again. May be something in web.config that can help me or anything generic??
Thanks
发布评论
评论(2)
使用专为此设计的项目转换器。它位于 Windows 开始菜单下的“Develper Express V2010 vol1 -> 组件 -> 工具 -> 项目转换器”。这将自动更改您对当前版本的所有引用。
项目转换器文档
Use the project converter which is designed for this. It is located under the Windows Start Menu at "Develper Express V2010 vol1 -> Components -> Tools -> Project Converter". This will automatically change all of your references to the current version.
Project Converter Documentation
我想你回答了你自己的问题。您不需要在每个页面上添加程序集引用,将其放在 web.config 中。
I think you answered your own question. You don't need to add the assembly reference on each page, put it in web.config.