Author: Hendy Tarnando

How to Prevent Caching in ASP.NET MVC

Any page that potentially contain sensitive information should not be cached on the user's browser and proxy servers. In ASP.NET MVC, you can use the OutputCache attribute to prevent caching for a controller action. For example: This will result in the following headers: Cache-Control: no-cache, no-store Pragma: no-cache Expires: -1…

Copy to Clipboard Without Flash and JavaScript Libraries

Recent versions of the popular browsers now support copy to clipboard natively through the document.execCommand() method. Calling the method with 'copy' command will copy the current selection to the clipboard. Before the copy command support was added, developers had to use Flash-based approach such as ZeroClipboard to provide this functionality.…

TWF Bootstrap Starter Template

TWF Bootstrap Starter Template is a custom starter template for Bootstrap 3. This template features a fixed top navbar, sticky footer, and custom content scrollbar, as seen on codesr.thewebflash.com. The vertical scrollbar starts under the fixed top navbar, it does not overlap the navbar. This template also uses the scrollbar…