Common database functions and binding functions for ASP.net using C#