Geeks With Blogs
Billy McCafferty whatever (but really just .NET) February 2006 Entries
Un-hiding web control declarations in ASP.NET 2.0 code-behind files
ASP.NET has an “interesting” way of encapsulating web control declarations within the code-behind of an ASPX page. Instead of forcing you (or “allowing you,” based on your perspective) to explicitly declare web controls via protected members in your code behind page, ASP.NET 2.0 automatically associates a hidden partial class with your code-behind that contains the explicit declarations. I appreciate the intention, but I find that the implementation makes the code-behind less ......

Posted On Monday, February 27, 2006 7:31 AM

Sortable ASP.NET DropDownList with convenient binding
Often a need arises to have items within a DropDownList sorted. There are a few options for performing this action: If the information is coming from the DB, use SQL to presort the items that will be bound to the DropDownList. The primary advantage to this approach is simplicity. The primary drawback is that you're now locked into a sorting scheme unless you modify the stored procedure to sort by another column. If the information is contained within a DataSet or within a collection of business objects, ......

Posted On Friday, February 17, 2006 7:15 AM

Generic DAO with NHibernate
4/28/06 Update: The NHibernate codeproject.com article wins ASP.NET article of the month. Woohoo!3/14/06 Update: See how this is used in a sample application at http://www.codeproject.com/... Hibernate.org has a great article on creating a generic DAO for Hibernate in Java. Below is what I use for the C# port. The interface for common CRUD functionality... public interface GenericDAO { T GetById(IdDataType id, bool shouldLock); List GetAll(); List GetByExample(T ......

Posted On Wednesday, February 15, 2006 7:32 AM

Copyright © Billy McCafferty | Powered by: GeeksWithBlogs.net