开发者

Support legacy code without access to compiled code behind

开发者 https://www.devze.com 2023-02-20 10:48 出处:网络
I have been asked to support a legacy app and I can\'t get access to the code behind files. I nee开发者_运维技巧d to add a new feature that gets a list of items from the database on page_load, what wa

I have been asked to support a legacy app and I can't get access to the code behind files. I nee开发者_运维技巧d to add a new feature that gets a list of items from the database on page_load, what way would adding an "in-page" page_load affect the compiled page_load?

What would be the best approach to take with this?


Since you mentioned that the legacy app has a Page_Load I assume it's .NET. This means that you should be able to decompile it using Reflector from Redgate to get the original source.

The source will likely be much less "pretty" than it was originally, but you should be able to get editable, compilable source out of it.

As for the question of an in-page page load and a compiled page load - You can try it... But I doubt it will work. You're really better off trying to get the source if you can.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号