Using Server Behaviours – Good or Bad?

Today we’re going to look at Dreamweaver’s ASP Server Behaviours (hereafter SBs). We’ll make use of them to display some data, step by step, and analyse how quick and easy it was to do. We’ll have a look at what happens when we try to take it a step further. Once we realise that the SBs merely provide a starting point, we’ll apply some code by hand to increase the usefulness of our page.
 
Finally, once we have seen both the use of SBs and hand-typed code, we’ll explore the advantages and disadvantages of each. I hope to demonstrate that although SBs are useful, they are quite limited, and that learning to code by hand will provide immense benefits over SBs, both in terms of possibility and performance.
$2.79
- OR -

Overview

Table of Content:

  • Using Server Behaviours
    • 1. Create the connection
    • 2. Create a Recordset
    • 3. Use a Dynamic Table to display the Recordset
  • Using hand-typed code
    • 1. Create variable to store current print size
    • 2. Alter the while-loop to check for a new print size
    • 3. If we find a new print size, display heading information
    • 4. If we find a new print size, Update the currentPrintSize variable
    • 5. Display the type/price fields
    • 6. Finalise the loop
  • Great, but what's the point?

Robert Stuttaford

Robert StuttafordI live in Cape Town, South Africa. I've been pushing 1's and 0's ever since my first computer at the age of 11. Ever since then I've always known I'll be a geek. I now work for Wireframe Studio in sunny Cape Town, and have been for the last 3 years. I'm the database / ASP / dynamic Flash guy here. I'm also one of the XHTML / CSS guys. I have alot of fun in my work because I develop solutions in a variety of ways. I always have something to do, and one project is always different to the next. I actually do have a girlfriend amongst all that!

See All Postings From Robert Stuttaford >>

Reviews

Be the first to write a review

You must me logged in to write a review.