Monthly Archives: July 2012

Reflecting Parameters

I got a question last week from a gentleman asking how to tell what parameters were available for a particular method.  This is useful when you know that a method will be available on a class you are calling, but the method could have any parameters, or when you have used reflection to get the list of methods in your class, and need to pull out the parameter list for each.… Read the rest

DotNetNuke: Staging Content Using Roles

The problem:

Currently DNN only lets us stage content using the Text/HTML module and only if you have the pro or enterprise version of DotNetNuke. There are three issues with this:

  1. We can only stage HTML content. Other modules need to resort to some other method.
Read the rest

jQuery – Calling Your Own Functions

color-02 While jQuery has a lot of functionality built into it, you may find that you have a need to implement your own functions and attach them to the jQuery framework in some way.

There are two ways to do this. You could extend the framework by creating a plug-in or you could use one of the built-in functions and simply tell it to call your function. … Read the rest

CSharp’s Property Shortcuts

There are a lot of nice shortcuts in the CSharp language that most of us never use.  But if you take the time to learn them, you can be as productive as a student I had who had learned all the keyboard shortcuts to windows so that he never had to take his hands off the keyboard.… Read the rest

How to properly access controls in the Master Page

One of the great new features in ASP.NET 2.0 has been the ability to use master pages to layout the common elements of the web site.  This certainly works better than top and bottom include files or top and bottom Web User Controls. … Read the rest