Browse by Tags

All Tags » C# 3.0 (RSS)
Today, this blog reaches an important milestone. This is my 500th post. It's just a number, but I thought I would use it as an opportunity to talk about the history of the blog and where it is heading. On December 1st, 2004, I wrote my first .NET...
Look! It's a post that isn't about SharePoint! Today, I want to talk about some of the issues I have run into when trying to update data using a GridView when bound to a LinqDataSource. This data source has an EnableUpdate property, but unfortunately...
with no comments
Filed under: , ,
After you query something with LINQ, you may want to know if any results were returned before your start enumerating or working with the EnumerableRowCollection (that's most likely the type behind that var you are using in most cases). Consider the...
with no comments
Filed under: ,
When you deactivate a feature that deployed a web part, it is a good idea to remove that web part from the gallery. This makes things much more likely to work when you upgrade said web part later. Like everything in SharePoint, this task is more complicated...
LINQ to SQL has already proved to be extremely easy to use to create object relational mappings when you have an existing database schema using the Object Relational Designer. This designer is good, but you may not want something that is autogenerating...
As I have mentioned before, one of my biggest complaints about SharePoint is that none of the collections in the SharePoint API have any way to determine if an item exists. Extension Methods offer a slightly more elegant way to do this, although the underlying...
Unfortunately, most of us aren't working in a perfect world, so it is bound to happen that you run into a dataset or two. Whatever the reason (the developer was lazy, you're maintaining legacy code, someone didn't know any better, or you're...
Object Initalizers aren't talked about very much as one of the new features in C# 3.0, but I find them pretty useful from time to time (esepcially when dealing with the SharePoint API). They are great, when there isn't a constructor that has all...
with no comments
Filed under: ,