List of Posts
This is the complete list of categories of posts written during Sep 2020. They have been ordered by the publish date, with the most recent first.
- Published: 03-Sep-2020This tutorial explains the Startup class in ASP.NET, along with the methods of this class. We also explain how a custom middleware can be attached by IStartupFilter.
- Published: 16-Sep-2020This tutorial explains everything necessary to get you started with the middleware in ASPNET Core. We explain the built-in middleware components as well as the Use, Map and Run extension methods through practical code.
- Published: 18-Sep-2020Use the concepts learnt till now, and without using razor, and without mvc framework, create a contact form that has a text box (cusName) and a date picker (meetOn), and that posts data to your asp.net core application. The application echoes this data back to the browser.
- Published: 20-Sep-2020This program reads the 512 bytes of the boot sector of a USB pendrive and displays them on the console window. The program has been tested on Windows 7, 8 and 10. It is based on the Win32 API CreateFile and Read. The program MUST be run with administrative access. Otherwise it fails.
- Published: 23-Sep-2020This is a summary of the concepts of routing and route templates in asp.net core. We have taken a practical exercise to develop the concepts in an interesting way.
- (C# ASP.NET Core 5)How to restrict access ONLY to requests from a specific list of domains and ports onlyPublished: 25-Sep-2020Write an ASP.NET Core application such that the route "/home/index/N", where N is any int number, executes only if the website is hosted on port 67291 of "hoven.in" or "www.hoven.in". It should return 404 even if it is hosted on any subdomain like "*.hoven.in:67291"?
- Published: 27-Sep-2020Some, not all, routes need a daily downtime between 17 hrs to 18 hrs. So they have to be shut during that period so that no requests are processed. Any request has to be redirected to another page or a website, say, hoven.in. How should that be implemented?
- Published: 28-Sep-2020This is a C++ program that prints the size of any file in bytes. Only three lines of code required! We use the ifstream class to open the file for reading. Then position the file pointer to the end. Lastly, read the position to obtain the file size!
- Published: 29-Sep-2020This program writes a byte array of 512 bytes to the boot sector of a thumb drive. The byte array is a small assembly code that prints HELLO to the monitor when the PC is booted from the pen drive. The program has been tested on Windows 7, 8 and 10. The program MUST be run with administrative access. Otherwise it fails.