Posts tagged with code snippets

Jun 18 2010

Lambda Function Factory

Ever dreamed of owning a Function Factory? Unfortunately this one might not make money, but it does make functions.

The reason you might use s...

.NETCode Snippets
Aug 20 2009

CR_ClassCleaner now with Refactor key

On occasions I’m sure I’m one of many that take advantage of the CR_ClassCleaner plug-in for CodeRush. For one reason or another the other day, I...

.NETCode Snippets
Aug 17 2009

Replace default DNN calendars with AJAX Toolkit Calendar Extender

Although DNN is a very capable CMS, one thing I’d really like to do is send this guy back to 1993:

While using a component we purchased (FormMas...

.NETCode SnippetsErrors and BugsASP.NET
Jul 12 2009

The MethodLinq concept

There are now a lot of Linq providers around that do various different things. However, some interfaces were never meant to have linq. In fact the...

.NETCode SnippetsGeneral
Aug 17 2008

What would NHibernate ICriteria look like in .net 3.5?

If NHibernate decided to ditch compatibility with plain old .net 2.0 and focus on 3.5 how would the ICriteria interface change? Previously I was t...

.NETCode SnippetsNHibernate
Jul 22 2008

NHibernate Type Safety using Lambda Expressions

I can't remember if this has been around before, I do vaguely remember seeing something like it.

However, I just wanted to apply a snippet of co...

.NETCode SnippetsNHibernate
Nov 9 2007

IDataErrorInfo for ASP.NET

As far as I'm aware ASP.NET doesn't support IDataErrorInfo, I've asked about this in many places, including Tech.Ed '07 with no success. The close...

.NETASP.NETCode Snippets
May 16 2007

Stopping ASP.NET web.config inheritance

If you are only ever running one ASP.NET application on a website this is not an issue. However, if you are running a site which may have an appli...

GeneralCode SnippetsASP.NET
Mar 6 2007

The C# @ String Literal

C# is a pretty sweet language, and there are many, many, many little things that just make the code that much nicer. Have you ever been in a situa...

General.NETCode Snippets
Dec 17 2006

Search Engine Optimization for .NET

Search Engine Bot Detection So after I first noticed a large build up of strange session Urls in Google searches for my domain I've then done a li...

Code SnippetsASP.NETSEO.NET
Dec 11 2006

ASP.NET 2.0 Mozilla Browser Detection Hole

It has recently come to my attention that there is something drastically wrong with the way search engines have been indexing my ASP.NET 2.0 blog....

.NETInternetCode SnippetsErrors and BugsASP.NET
Dec 7 2006

Cleaning Up ASP.NET Sessions in Google

ASP.NET and Dirty Urls There are two things that have been bothering me about pages that are getting indexed in Google from an ASP.NET application...

.NETCode SnippetsSingleUserBlogErrors and BugsASP.NETSEO.NET
Nov 5 2006

Brendan's C# Modifier Keyword Guide

After a little bit of thought from my last post I decided to write a small sample class and use tooltips to document what some of the most common ...

General.NETCode Snippets
Aug 3 2006

Accessing controls on a masterpage

Here are a couple of neat things in ASP.NET 2.0 that I've used recently.

			Access the controls on a master page.  You'd think it must be poss...

General.NETCode Snippets
Mar 21 2006

CSharp and Datalayers

One thing that has become very important in my recent work is datalayers. I’ve seen a few difference approaches to filling objects after the data ...

.NETCode Snippets
Mar 13 2006

'TextBox' cannot have children of type 'DataBoundLiteralControl'.

From what I've seen this particular error is already pretty well documented, however it is one of the things that Visual Studio is a little mislea...

.NETCode SnippetsErrors and Bugs
Mar 8 2006

IHTTPModule vs IHTTPHandler

The proof of concept IHTTPModule friendly url rewriter for SUB using regular expressions. For my previous post regarding friendly urls see here. ...

.NETCode SnippetsSingleUserBlog
Mar 5 2006

SQLite data provider for SingleUserBlog

Please be aware that it may still have bugs. I have been using it now for about two weeks, making small refinements as I’ve found them. To Instal...

.NETInternetCode SnippetsSingleUserBlog
Mar 2 2006

ASP.NET Google Sitemap

Probably the best thing about SUB is its simplicity. There are two things I’d like to try to document in this post, firstly is the code for adding...

.NETCode SnippetsSingleUserBlog