Later on I took MITx's prototype 802.11x online course, where I learned far more and managed an A. In that case the professor actually cowrote the textbook, but there was a free online copy for the online class, and the textbook was actually good.
Edit: in another case, another course at the same university used a custom printed textbook sold exclusively by the university for well over $100, that was just a few chapters from one $15 book and the complete contents of another $20 book bound together.