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
Showing page 1 of 2 (13 total posts)
  • 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
  • Silverlight Expired The Pain of Reinstalling

    So I have been ignoring these messages I've been receiving for a while about Silverlight. Now I might not have ignored it, but it said my version of Silverlight expired. Ok so big deal. You might say, ''Why not just go get a new version?'' Well it says to go to a certain URL. You can't click on the URL, and you can't copy and paste the text. ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on December 19, 2007
  • Unpacking Tuples in Python

    There are plenty of reasons why I like the Python language. Yes, I know it is an interpreted language and it is very dynamic. While looking at some JavaScript mere moments ago, I saw someone pass back two values from a function. This is one thing that bothers me when I am writing in a lot of languages. I will need to pass back two or more values ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on December 11, 2007
  • 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
  • Using a Numbers Table to Iterate Over Dates

    I recently wrote some SQL which would do some work for a single day, but I wanted my code to be able to run once for each day in a date range. Luckily for me, I read Gregg Stark's SQL Blog. He recently posted about how to Iterate Over a List of Dates using a Numbers table in SQL. The SQL he gives is pretty much a cookie cutter solution to the ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on October 10, 2007
  • Numbering the Rows Returned from a SQL Query

    Outside of SQL it would be quite easy to number the rows returned from query, but to do so inside of the SQL is a bit more difficult. I recently wanted to be able to number the rows returned from a query in a stored procedure. I am using SQL Server 2000, so I cannot use row_number(). I was going to ask my go to SQL guy, Gregg Stark, how to do ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on October 1, 2007
  • Installing SQL Server Management Studio with SQL Server

    Update (24 March 2008): Steve Smith found a more reliable solution to install the SQL Server Client Tools. Once in the tools folder open the setup folder and in there is a SqlRun_Tools.msi file. If you run that it should actually install SSMS. When I recently installed SQL Server 2005 and SQL Server Management Studio on my computer it did not ...
    Posted to Orcs Goblins and .NET (Weblog) by Brendan on September 24, 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
1 2 Next >