ok, then i'm going to have to find my example i was doing, and post it here to see exactly why it wouldn't work.

i believe i made a sub() and tried calling it from another part of the document, and it would work in the .aspx page, but not in the code-behind.

I would prefer the code-behind, since i can keep the coding out of the designer's view...