Replacing Request aspx with a Rest Like URL
- Create a new MVC project.
- Add all the references used by the xx.Server project to the new MVC project.
Specifically all the projects of your application, and:- ENV
- Firefly.Box
- System.Windows.Forms
- Copy the ini file.
- Copy the “App_Start” folder content to the “App_Start” of the new MVC project.
- Copy the following lines from the original global.asax to the global.asax of the new MVC project.
- Change the project to use Local IIS – and click “Create Virtual Directory”
Project Properties\Web\Servers\LocalIIS - Copy the Request.aspx files. Or Add a void Method to a controller and call Application.Instance.ProcessWebRequest
8.You can also go one step further and add support for cool routing:
For extra features add:
- Reference to ENV.Web.MVC dll
- To print pdf:
3. To Create Json:
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com