Posts tagged with code snippets
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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....
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...
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 ...
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...
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 ...
'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...
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. ...
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...
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...
