Hello Casey, In the code-behind file (the XXX.ascx.vb file) you can declare any sub you wish using the following syntax: Public Sub SubName() 'sub logic End Sub Of course you need to consider the access level of the routine base on who is supposed to use it. HTH, David Travis. -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Casey Crookston Sent: Monday, October 11, 2004 11:20 PM To: thelist at lists.evolt.org Subject: [thelist] vb.net: using subroutines within user controls - .ascx Is it possible to use subroutines from within a user control? If so, what is the syntax for declaring the sub? Thanks, Casey -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt !