ASP.NET - working with compiled code - Asked By s p on 15-Mar-12 02:32 AM

Earn up to 10 extra points for answering this tough question.
I have a compiled site made in MVC architecture.It has a grid made in jquery. In the site when we right click on a row and select ‘open’ option the details of the Employee shown in the row  appears on the next page. However,I want to add more options on the right click menu. But for these options to function I need to fetch the employee id. As I have compiled code how to achieve this.
I have been handed over compiled code. I have not written the code originally
D Company replied to s p on 19-Mar-12 11:58 AM
Its bit difficult to say exactly what original coder has done until u dont send us the code snippet , but two things u need to check

1.)Check your JQuery code and see how the coder used "Open" option. and there only u will find on click of open what happens.
2.)as u have mentioned In the site when you right click on a row and select ‘open’ option the details of the Employee shown in the row  appears on the next page. here u need to check the code behind of that page how data gets loaded in this page

Hope this helps u to get some !dea
Regards
D
[)ia6l0 iii replied to s p on 19-Mar-12 10:10 PM
Parse the code through naked eyes. That is the way out. 

Check the url on the browser (and if the UI is loaded asynchronously and partially, the url won't be right"). The url can give you the controller and the action methods which will help you reach the code faster. 

If the url is like this - http://servername/Invitations/Client/45 then "Invitations" refer to the controller, and "Client" refers to the action. So search for InvitationsController.cs and the action method "Client" inside that.

The action method will return ActionResult. This would most probably be a View. Check the View, and you will have the markup for the Grid. Once you have the markup, it shouldn't take more than few minutes to alter the markup and get the id.

Hope this helps.