Can I replace the provider-provided method used on the ASP.NET page?

Our internal HR application is developed by the vendor, but I was asked to change the behavior of certain functionality without their help (which I donโ€™t want to do, but Iโ€™m investigating ...). This functionality is an .ashx page that searches databases and is called through javascript functions on a web page. We want to add another database search.

We have control over the javascript code, so this is not a problem, but the code for the .ashx page is stored in a compiled assembly. I found where it is and looked at it using .Net Reflector. Repeating the methods involved would not be easy if it were technically feasible.

Can I create a new assembly, insert the source code made using Reflector, make changes, add a DLL to the application and then configure a new .ashx to link to it?

I am worried that I cannot be possible:

The code refers to some classes of suppliers stored in other assemblies; can I just add references to these assemblies in Visual Studio so that it can compile, and then when it is compiled and placed on the server, will everything work?

Will I have a problem getting the web application to accept the new DLL, given that overall this application is not what we bring to ourselves?

EDIT: : DLL , . DLL , ( , DLL Reflector). , , . .ashx, DLL.

, , , , ! , .

+3
2

. , .

, , , ; , .

.ashx , . , , DLL BIN . (, .) ( : , .)

0

, Javascript, . , ?

0

Source: https://habr.com/ru/post/1751756/


All Articles