Posted by malakablog on July 31, 2008
I lost some of my applications code coz of PC format, one of these applications is a C# Console Application, I managed to get the exe output of this application but I was not able to retrieve the code files so I used (.NET Reflector) to do this:
1- Download the .NET Reflector.
2- Download the Reflector.FileDisassembler.
3- Extract the .Net Reflector
4- Extract the Reflecter.FileDisaembler
5- Copy the Reflector.FileDisassembler.dll to the .Net Relector Folder
6- Start Relector.EXE
7- From the View menu select Add-Ins

8- In the Add-Ins Screen select Add and select Reflector.FileDisassembler.dll then close the Add-Ins screen

9- From File menu select Open and select the exe file you want to retrieve its code

10- The reflector will load the file Assembly in the Assemblies section

11- Select the required file and from the Tools menu select File Disassembler

null
12- Click Generate and you will get your code

null
Finally I would like to thank Siderite for his help
Posted in Uncategorized | Tagged: .Net, .NET Reflector, Assembly, C#, development, recovery, Reflector.FileDisassembler | 9 Comments »
Posted by malakablog on July 16, 2008
This is a simple guide for using the AJAX Pro in VS2003
1- Add the AJAXPro.dll to your bin folder
- Right click on the bin folder and select “Add Reference… ”

- Select the browse tab and browse for the AjaxPro.dll folder to select it and click ok

2- Add the following to your web.config file
<httpHandlers>
<add verb=“POST,GET“ path=“ajaxpro/*.ashx“ type=“AjaxPro.AjaxHandlerFactory, AjaxPro.2“/>
</httpHandlers>
3- Create a Class to write your Ajax functions
- Right Click on the App_Code folder and select “Add New Item…”

- Select “Class” from the templates; enter a name for your class and click Add

4- In your class imports the AjaxPro Library and create your function as the following:
<AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.ReadWrite)> _
Public Function AjaxFunction(ByVal strVariable As String) As String
5- In the ASP Page that need to use the Ajax Function:
- Import your Ajax Class library
- Add a function to the body onload event
<body onload=”BodyOnLoad()”
- In the BodyOnLoad assign a variable to your class
function BodyOnLoad()
{
LPMyAjax = IMGSLB.MyAjax;
}
6- Now you can call the ajax function from JavaScript
function jsCallAjax(strValue)
{
try
{
LPMyAjax.AjaxFunction(strValue,jsCallAjaxCallback);
}
catch(err)
{
alert(err.message)
}
finally
{
}
}
Posted in Uncategorized | Tagged: AJAX, ajaxPro, ASP.NET, beginner, code, development, HTML, JavaScript, Programming, web | 1 Comment »