I pieced all of this together from various sources online, so the code is a bit rough, but here it is:
1. Create a partial razor view, call it _NotifyBar.cshtml, it contains this:
Read more on How to do a cool flash notification message in asp.net mvc 3 in 6 easy steps…
Popularity: 2% [?]
photo © 2007 gnizr | more info (via: Wylio) I decided to update my JargonDatabase.com web property last month started to update define the user-submitted jargon terms. Much to my surprise users had submitted over 15,000 unique undefined jargon terms. Some of them were conceptual duplicates, like “whites of their eyes” and “the whites of their eyes”, but how to filter the terms to see if they were duplicates or not?
Read more on The most time-saving sql code I have ever written…
Popularity: 1% [?]
The Problem: You need to prevent people from saving images and photos that are featured on your website
The Cause: There is no real solution to this – if you can see it online, you can copy it, but you can make it more difficult.
Read more on How to prevent images and photos from being stolen your site…
Popularity: 1% [?]
photo © 1918 National Library of Scotland | more info (via: Wylio)The Problem: You need to copy a file from one location on the server to another and cannot remember how.
The Cause: It is too short and simple, and easily forgotten
Read more on How to fix the copy file problem in C#…
Popularity: 1% [?]
The first entry in my Code Review is the List<>.
So far, the List is my favorite sort of array in C#. It has the benefits of
- being obvious in naming
Read more on The List<> in C#…
Popularity: 1% [?]

The Problem: You are trying to create an ASP.net GridView that automatically populates on any dataset, as well as automatically sorts, but for some reason whenever you click the headers to sort the GridView, the data doubles.
Read more on How To Fix Column Doubling in an ASP.net GridView – with Code Sample…
Popularity: 1% [?]
I have no idea how this trick has eluded me for so long, but it is possible to use two classes on the same DOM object. For example to combine a class called “TopNav” and a class called “SelectedNav” all you have to do is call them both with code like this
Read more on CSS trick – how to use two classes on a single DOM object…
Popularity: 1% [?]
I recently had the need to create a Microsoft Word document from a template. I initially tried using Office Web Components and Interop but all that really wasn’t worth the trouble. I wound up doing global replacements in the html of html Here is how I did it:
Read more on A simple way to create a Microsoft Word document from a template in Asp.net/C#…
Popularity: 2% [?]
I recently came up with the need to have a validated CheckBoxList in and Asp.net page. Over the years I’ve come up with a standard way of setting up validated CheckBoxLists, so I thought I would share the method and start the brand new “Code Samples” section..
Read more on How to set up the CheckBoxList control in Asp.net…
Popularity: 1% [?]