Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

Browse by Tags

All Tags » Tips » C#
  • Return Within a C# Using Statement

    While writing some code earlier today I needed to return from within a using statement. Doing these sorts of things always makes me appreciate the using statement and how wonderful it really is, so I decided to write about it here. As many of you know the using statement in C# is a good tool for managing types which will be accessing unmanaged ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on May 22, 2008
  • Generic Recursive Find Control Extension

    Earlier today I posted about a Recursive Find Control Extension Method. I was informed recently by Steve Smith that I should check out the generic find control method which Aaron Robson has on his blog. He has some pretty nice methods there, so I just adapted them to be extension methods now. As extension methods the code looks like this. ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on March 31, 2008
  • Creating a Recursive FindControl Extension Method

    So one of the most useful methods for ASP.NET development that never seems to be included in ASP.NET is a recursive find control method. This problem results from the standard FindControl method on controls only searching within that control. It only finds child controls not grandchildren or anything farther down the line. This means that anything ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on March 31, 2008
  • Simple Lazy Loading

    Lately, I’ve noticed a lot of people who are not careful about how they load objects. Managing objects is a fundamentally important part of software development. Lets say for example I have an integer in the query string, and I need to use this number in a few places on my page. Well it is obviously inefficient and an ugly process to check ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on May 31, 2007