It is unclear what you are asking.
One issue: In your code post you start a loop (Do While Not TextStream.AtEndOfStream) but you don't loop so you are going to have problems with your code on that.
Also, you are running some code, and then including some files. Assuming that app_constants.asp and eca_functions.asp don't have any inline code, you are probably ok... but I'd suggest you include files at the top of your file.
So... when you say your "page doesn't load", what do you mean? You just get a blank page in the browser? or is there an error message? or?
One little suggestion: You are trying to learn too much at one time - I suggest that you make little test pages to test each aspect of what you are learning. Once you prove to yourself that you understand each concept, you can combine them.