Introduction to Active Server Pages for Programmers

This course will teach programmers about the Active Server Pages skills you need to build full-featured, database-driven Web sites for Microsoft Internet Information Server (IIS). This introductory course for new programmers lays out the basics of server-side Web programming with an introduction to classic programming structures and good programming practices. Students will apply these programming skills to the development of a fully functional data-driven Web site with ASP written in VBScript, the Microsoft programming script used in most ASP applications. Students will harness the power of ASP to remember users with cookies and sessions, collect and process information users enter into an online form, and provide rich integration with databases to track clients, orders, and products using ASP and the enhanced functionality of ASP components.

After completing this two-day course, students will be able to:

  • Understand Web Server-Side Programming with ASP
  • Use Cookies and Sessions to Remember Information
  • Explore Server-Side ASP Components
  • Build Database-Enabled Applications With ASP
  • Make Your Code Modular with Subroutines and Functions

 

key facts buy online

• code: W144eng
• 2 days
Download outline

Student edition
A4 format
A5 format
Instructor edition
A4 format
A5 format

Target audience

Students should have an excellent working knowledge of HTML, gained through experience or attendance on an advanced level course. In addition, students must have experience working with a modern programming or scripting language such as Perl or C++

Course content

Active Server Pages A Web Server-Side Technology Client-Side vs. Server-Side Web Technologies • The Web's Client-Server Relationship • Which Web Servers Support Active Server Pages?

Writing ASP Pages ASP Code In An HTML Context • ASP Code Is “Language Neutral” • VBScript Statements to Execute in ASP • Enclosing Scripting Code within your ASPs • Strings in VBScript • An Abbreviation for Response.Write • Developing ASPs in This Class • An Example: “Hello World” • ASP Directives, Statements, Expression and Comments • Conditional Constructs with “If” • Comparison Operators in VBScript • The Logical AND and OR • VBScript Flexibility and Good Programming Practices • Exercise 1: Adding a Greeting and Date and Time Stamps to a Page

Processing Data from Online Forms The <FORM> Tag and Its Attributes • ASP Objects • The Request and Response Objects • Scalar Variables in ASP • Demonstration: Displaying a Customized Greeting • Combining the Form and Its Processing Code In One ASP File • Exercise 2: Personalizing the Homepage for WLDC

Working with Cookies Setting and Retrieving a Cookie • Cookie Properties • Example: Setting, Retrieving, and Expiring a Cookie • Exercise 3: Enhance the WLDC Home Page With Cookies

Maintaining State with the Session and Application Objects The Session Object • Storing and Retrieving Values Using the Session Object • Session Properties and Methods • Example: Using the Session Object to Track a Shopping Cart • Exercise 4: Building a Shopping Cart for WLDC • The Application Object • Exercise 5: Use the Application Object To Track Auction Bids

Working With Components Instantiating Component Objects • Sending E-mail with CDONTS • Exercise 6: Implementing CDONTS E-mail at WLDC

Writing To A Text File Example: Writing to a Tab-Delimited File • Exercise 7: Storing Registrations in a Tab-Delimited Text File

Loop Structures For … Next Loops • Example: Create Form Fields, Retrieve Values with For…Next Loops • Collections in ASP • For Each…Next Loops and Collections

ASP-to-Database Integration with ADO The Databases Used in this Class • Issuing Database Commands with SQL • The ADO Object Model • Example: Selecting and Viewing Data From guestbook.mdb • Database Connectivity with view.asp • The Connection Object’s Execute Method • Exercise 8: Building a Search Engine Interface • Exercise 9: Enhance the Registration Form to Insert a New Client • Development Strategy Session: Building an Interface for Updating ClientRecords • Exercise 10: Building an Interface for Updating Client Records

VBScript Subroutines and Functions Subroutines • Functions • Exercise 11: Use Subroutines in the Client Information Update Page

Drilling Down and the Query String Building the Query String into a Link • Generating Drill Down Links Dynamically • Exercise 12: Drilling Down Client Data

Appendix A: Building an Interface for Deleting a Record Exercise 13: Building an Interface for Deleting Records

Appendix B: Recommended Resources


About Courseware Company :: Instructor-led training courseware :: Self-study solutions :: Buy online today

A gtslearning business division :: gtslearning CompTIA learning solutions ::Contact us :: Site map
© gtslearning, 2008. All rights reserved. Ownership of all trademarks and service marks is observed and respected.