TWF Blog What's New?

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...

How to Redirect a Blogger Blog to Another Site

This article shows how to redirect an entire Blogger blog to another site/domain. Before doing the steps below, make sure you've downloaded a backup of your theme, just in case you run into trouble. Sign in to Blogger and choose the blog that you want to redirect. In the left...

Copy to Clipboard (Without Flash) Using Copy Command

Recent versions of the popular browsers (except Safari) 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...

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...