ASP 101 - Active Server Pages 101 - Web06
The Place ASP Developers Go!



Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash



 Top ASP 101 Stories Top ASP 101 Stories
Connections, Commands, And Procedures
What is ASP?
VBScript Classes: Part 1 of N

QUICK TIP:
Use Visual InterDev
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates


Quick Tips


Encapsulate business logic in components
It can be difficult to decide whether to access a database directly from your Active Server Pages or from a component written in a language such as C++ or Visual Basic. You may want to use the following rule of thumb: If your database access and processing logic takes up more than 20 to 30 lines of script code, it's probably a good idea to create a separate component to handle the database access and processing logic. It's often tempting to put a lot of complex business logic into an ASP page, but that can slow down your application. ASP scripts are interpreted, and thus aren't as efficient as compiled components.

Whether you choose to build components and business objects using Visual Basic or a more complex language such as C/C++ or Java, the key is to find a way to integrate middle-tier business logic with your Web application. Using components this way can improve the performance and scalability of your application--and you can reuse components across your Web site and client-server applications.
Previous      Show All Tips      Next

If you have a tip you would like to submit, please send it to: webmaster@asp101.com.


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers