While that is true, there is a section for database connection strings in web.config, you must consider that ...
1) this section was not standardized until ASP.NET 2.0
2) the developer is not forced to use this and may have utilized his own methods.
I do not know how many more ways to state it, there simply is no garaunteed way to find application database information.