Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database Driven Forms: Functions or in-line code?

Status
Not open for further replies.

ahmun

IS-IT--Management
Jan 7, 2002
432
US
Hi

I have been writing a LOT of webforms driven by ASP and database back end...

I'm at the point that I feel I'm repeating myself a lot in code and am wondering if I can get some tips on streamlining my programming both for efficiency of the web page, and efficiency of development.

My initial thought is to try to write a class or set of functions that can be used to query a database and return the necessary info in an array or pre-formatted HTML (whichever will make more sense). Then I simply include this class or function file and execute the function and have my info!

Here's a big picture of my current project:
I have multiple pages for one aspect of a database (edit forms for lookup tables, for the main tables, for related tables) And rather than always going to each individual ASP page to modify code, I wanted to encapsulate all the code into one Include file.

I am wondering:
[ul][li]Will this cause a longer delay on the server side in serving up the page because it has to look through many more lines of code before processing a page?[/li]
[li]Does it make sense to try to make a generic class that can be reused in all webform applications?[/li]
[li]Are there complete packages out there that I can use or development tools that will make developing data-driven pages quicker?[/li][/ul]

I'm currently running IIS 5.0 on a Win2k Server. I develop using DreamWeaver MX 2004, using ASP 3.0 and VBScript.

Thoughts?

Earnie Eng
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top