Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在同一个项目中创建一个公共版本的 .aspx 页面,只需进行一些小的修改。我的老板只是希望能够链接到该页面的新公共版本。每当我创建该页面的副本及其连接的报告时,我都会收到很多歧义错误。有没有办法避免这种情况?我正在考虑尝试更改其中所有文档的名称空间,但到目前为止它只是产生了更多错误。
另一种选择是手动检查并更改每个单独的变量,但是大约有 12 个不同的文档,每个文档都有需要编辑的 aspx 页面和 cs 页面。
只需更改代码隐藏类的名称即可。例如,来自:
public class SomePage : Page {
至:
public class SomePagePublic : Page {