Posted in ASP.NET

Customizing authentication in MVC

Introduction If you want to develop a web application which requires authentication or security features not included…

Loading

Posted in Server Tech

How to setup and restart the cron job on a Synology NAS

Under normal circumstances, we can use the schedule app for run our script or jobs in Synology…

Loading

Posted in ASP.NET

How to create and download file with Ajax in ASP.NET MVC

Introduction When you use the Ajax call in ASP.NET MVC, you just can return a JSON object but not a file, if you want to do that, you need to create and save the file in server and return it’s path to Ajax, after that, you can call a redirect link for download the file, because this is a temp file, so you should need to delete it after download.

Loading