Is the data you are trying to display from the custom table part of the form or post back?
For example, a example I can think of is: There is a drop down, based on what's been selected in that drop down, I need to use custom query to select a list of values from a custom table and generate a second drop or check box options.
Is that similar to what you are trying to do or you are looking for something like. Based on user's choice from a drop down, on the post back, display a list of data from a custom table.