Look at storing your connection string in the web.config:

http://weblogs.asp.net/owscott/archi....NET-v2.0.aspx

Also look at creating a data access layer to handle all your database functions.