[英]ASP.NET extending application without source code
I need to extend some web application, probably in ASP.NET WebPages. 我需要扩展一些Web应用程序,可能在ASP.NET WebPages中。 Just add one function, a non-framework PHP equivalent would be uploading some
newfunc.php
file 只需添加一个函数,一个非框架的PHP等价物将上传一些
newfunc.php
文件
It has the only one problem - I don't have no source code (tried to get it for 3 months), only access to .dlls on webhosting. 它有唯一的问题 - 我没有源代码(试图获得它3个月),只能在webhosting上访问.dll。 I can imagine few solutions:
我可以想象一些解决方案:
First two can reveal problem with routing as the website routing routines would not know about new "page". 前两个可以揭示路由问题,因为网站路由例程不会知道新的“页面”。 I don't have much experience with ASP.NET.
我对ASP.NET没有多少经验。
Which solution should I use or is there some other way to do it? 我应该使用哪种解决方案,还是有其他方法可以做到这一点? Thanks!
谢谢!
I know this may come too late, but for what is worth, here's my 2 cents. 我知道这可能来得太晚,但值得一提的是,这是我的2美分。
Disassembling will only be useful if the code was built with debugging information (and the DLL aren't obfuscated). 只有在使用调试信息构建代码(并且DLL不进行模糊处理)时,反汇编才有用。
Other than that, i really depends on the code structure. 除此之外,我真的依赖于代码结构。 That will limit what you can do and what you can't.
这将限制你可以做什么和你不能做什么。
What i would do is something along these lines: 我会做的是这样的事情:
Depending on ASP.NET version you may have to change in the ASPX files the codebehind class to point to your new classes. 根据ASP.NET版本,您可能必须在ASPX文件中更改代码隐藏类以指向新类。
Hope this helps, it's a messy situation the one you're in :) 希望这会有所帮助,这是一个混乱的情况你在那里:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.