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 » ASP.NET » Tips
  • 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
  • Accessing Controls inside of Templated Controls

    One question that seems to come up often in the asp.net forums is from people who are trying to access controls within controls using templates. LoginViews and CreateUserWizard controls are two commonly used templated controls. These templated controls don't actually have their contents known until run-time because it is dependant on ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on October 26, 2007
  • Dynamically Register an Asynchronous Postback Control with a ScriptManager

    In order to use an update panel you have to specify the triggers either individually or by setting the ChildrenAsTriggers property of the UpdatePanel. Sometimes you may need to set these triggers dynamically such as if the desired trigger is inside of a repeater and is not inside of the update panel. In instances such as this you will need to ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on July 17, 2007
  • Accessing Properties of a Base Page from a User Control

    Earlier today I was helping someone who was working with a user control. That control was on an ASP.NET page which was inheriting from a base page. From the user control he could not access the properties of the base page. He mentioned that he was getting an error message which said that the property did not exist in the current context. I ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on June 21, 2007
  • The Blog Only Idiots Do Not Read

    In this new age when the Internet is becoming the medium of choice, blogs are rapidly gaining momentum. It is nice to be able to get information direct from the experts in any area. The ease with which one is able to obtain this information is astounding, and this statement brings me to my next point. Some of the content which is so ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on March 20, 2007