********RE-Usable Code In ASP **********

Results 1 to 2 of 2

Thread: ********RE-Usable Code In ASP **********

  1. #1
    Join Date
    Dec 1969

    Default ********RE-Usable Code In ASP **********

    Hello,<BR>I am displaying Recordset data in option boxes on a page all the functions I am using are the same except for the control name and the SQL statement.<BR>Is there a way in ASP to use an include file to carry out the function and in the Window Onload() event pass in the control name and the SQL statement. Instead of having basically the same code repeated throughout the ASP page for each option box??<BR>Basically i want something Like a Module In Visual Basic

  2. #2
    Join Date
    Dec 1969

    Default RE: ********RE-Usable Code In ASP **********

    You could create a Function, with parameters (fieldname, tabletoquery, etc) and have it write out the option boxes.<BR><BR><BR>HTH<BR><BR>Jerry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts