在运行时替换 asp 控件

发布于 2024-09-27 14:22:17 字数 162 浏览 1 评论 0原文

我有一个现有的 .NET 1.1 dll,但没有其源代码。它包含 asp.net 页面的代码隐藏,该页面包含各种表单控件,包括我不再想使用的第三方文本编辑器。我想用一个简单的 asp:Textbox 替换文本编辑器,但现有的文本框被烘焙到旧程序集中。如何覆盖/扩展现有页面以使用文本框而不是旧的文本编辑器控件?

I have an existing .NET 1.1 dll that I do not have the source code for. It contains the code-behind for a asp.net page containing various form controls including a third party text editor that I no longer want to use. I want to replace the text editor with a simple asp:Textbox but the existing textbox is baked into the old assembly. How can I override / extend the existing page to use a textbox instead of the old text editor control?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美胚控场 2024-10-04 14:22:17

据我所知,如果不修改 dll,我们无法将该文本框替换为您自己的文本框。

如果我处于您的位置,我会使用 .net Reflector 并使用相同的代码来重新创建具有您想要嵌入的文本框功能的新 dll。

As far as I'm aware we can't get that textbox replaced with your own without modifying the dll.

If I'm in your place I would have used .net reflector and used same code to recreate the new dll with the textbox functionality which you want to embed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文