Author: cdemott | Posted on: 3/12/2009 8:15:25 AM | Views : 294

Newbie question.  One of my pages has three SQL queries.  One on page load, one in a fuction and one in a sub routine.  The code bihind page is a bit long but not too bad.  I'm not going to be using these SQL statements anywhere else on the site (that I can think of right now) so should I leave them where they are or create a class for them.

How does one determine if you should place your function and subs in a Class file versus keeping it in the code being page?  What is your deciding factor? 

Your opinions would be greatly appricated.  Thank you.
...

Go to the complete details ...