you don't "NEED" a web.config, but it's a handy place to store your connection string. The next thing you will need is some method(s) for retrieving data.
Try to keep your data retrieval seperate from your business logic. In other words, don't put your data retrieval methods IN the aspx page...