Join 300,464 ASP.NET Programmers for FREE! Get instant access to thousands of ASP.NET experts, tutorials, code snippets, and more! There are 1,688 people online right now. Registration is fast and FREE... Join Now!
The snippet will let you retrieve your connection string(or strings) from your web.config file(instead of putting them into each one of your scripts). I found it at http://weblogs.asp.net/owscott/archive/2005/08/26/Using-connection-strings-from-web.config-in-ASP.NET-v2.0.aspx