Re: Declaring variables in one common asp page
roverroad wrote:What are the consequences of this going to be?
It will take more CPU power to parse your script and some memory for "unneeded" variables. And one more file to read if your server don't cache them to gain speed on common pages. It will not effect the bandwidth in any way since the result sent out is the same as if you had it all in one file.
If you make a big project it's a good thing to put config variables in a file like config.php. Also common stuff like open sql connection, checking userdata and stuff like that in one file since if you find a bug you only need to fix it once. And you can take some time to make it good with error checking/messages that often is "left to do later"...