Home
Manage Your Code
Snippets for Joel Ross
Showing 1-5 of 5
TitleDescriptionLanguageViewsDate Added
Multiple Sorting of Generic Collections on any property This allows you to sort a collection in a generic fashion based on any property on the object. It is an update to an earlier snippet to support GenericsC#32204/12/2006
Standardized Application Path Provides a fix for the inconsistenies in Request.ApplicationPath.C#3422/23/2006
Generic Sorting Class (IComparer) This can be used to sort a collection using any property of the object. It supports multiple sorting, and uses reflection to sort by a property.C#5377/19/2005
Double Click Prevention For ASP.NET By putting this in a base page, you can pass it a control and this will ensure that the control (such as a button) will not be clicked twice. This is nice when you want to prevent the page from being submitted twice.C#13557/13/2005
Default Button For ASP.NET Page This method can be used in a base page and when passed a submit button's ClientID, that will be the default button clicked when a user presses enter.C#7397/13/2005